Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SpeedTest (0.2 sec)

  1. cmd/peer-rest-common.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import "time"
    
    const (
    	peerRESTVersion       = "v39" // add more flags to speedtest API
    	peerRESTVersionPrefix = SlashSeparator + peerRESTVersion
    	peerRESTPrefix        = minioReservedBucketPath + "/peer"
    	peerRESTPath          = peerRESTPrefix + peerRESTVersionPrefix
    )
    
    const (
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. cmd/admin-router.go

    		}
    
    		adminRouter.Methods(http.MethodPost).Path(adminVersion + "/speedtest").HandlerFunc(adminMiddleware(adminAPI.ObjectSpeedTestHandler, noGZFlag))
    		adminRouter.Methods(http.MethodPost).Path(adminVersion + "/speedtest/object").HandlerFunc(adminMiddleware(adminAPI.ObjectSpeedTestHandler, noGZFlag))
    		adminRouter.Methods(http.MethodPost).Path(adminVersion + "/speedtest/drive").HandlerFunc(adminMiddleware(adminAPI.DriveSpeedtestHandler, noGZFlag))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  3. cmd/admin-handlers.go

    			defer deleteObjectPerfBucket(objectAPI)
    		}
    	}
    
    	if !noClear {
    		defer objectAPI.DeleteObject(ctx, customBucket, speedTest+SlashSeparator, ObjectOptions{
    			DeletePrefix: true,
    		})
    	}
    
    	// Freeze all incoming S3 API calls before running speedtest.
    	globalNotificationSys.ServiceFreeze(ctx, true)
    
    	// Unfreeze as soon as request context is canceled or when the function returns.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  4. cmd/notification.go

    		results[len(results)-1].Endpoint = u.String()
    	}()
    	wg.Wait()
    
    	return results
    }
    
    // SpeedTest run GET/PUT tests at input concurrency for requested object size,
    // optionally you can extend the tests longer with time.Duration.
    func (sys *NotificationSys) SpeedTest(ctx context.Context, sopts speedTestOpts) []SpeedTestResult {
    	length := len(sys.allPeerClients)
    	if length == 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  5. cmd/erasure-multipart.go

    	}
    
    	if !opts.Speedtest && len(versions) > 0 {
    		globalMRFState.addPartialOp(PartialOperation{
    			Bucket:    bucket,
    			Object:    object,
    			Queued:    time.Now(),
    			Versions:  versions,
    			SetIndex:  er.setIndex,
    			PoolIndex: er.poolIndex,
    		})
    	}
    
    	if !opts.Speedtest && len(versions) == 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  6. cmd/peer-rest-client.go

    			if m == nil {
    				continue
    			}
    			select {
    			case <-ctx.Done():
    				return
    			case ch <- *m:
    			}
    		}
    	}()
    	return ch, nil
    }
    
    func (client *peerRESTClient) SpeedTest(ctx context.Context, opts speedTestOpts) (SpeedTestResult, error) {
    	values := make(url.Values)
    	values.Set(peerRESTSize, strconv.Itoa(opts.objectSize))
    	values.Set(peerRESTConcurrent, strconv.Itoa(opts.concurrency))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. cmd/erasure-object.go

    			// Object info is the same in all disks, so we can pick
    			// the first meta from online disk
    			fi = partsMetadata[i]
    			break
    		}
    	}
    
    	// For speedtest objects do not attempt to heal them.
    	if !opts.Speedtest {
    		// When there is versions disparity we are healing
    		// the content implicitly for all versions, we can
    		// avoid triggering another MRF heal for offline drives.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  8. cmd/peer-rest-server.go

    				peersLogIf(ctx, err)
    			}
    		}
    		if err != nil {
    			break
    		}
    	}
    }
    
    // NetSpeedTestHandlers - perform network speedtest
    func (s *peerRESTServer) NetSpeedTestHandler(w http.ResponseWriter, r *http.Request) {
    	if !s.IsValid(w, r) {
    		s.writeErrorResponse(w, errors.New("invalid request"))
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
Back to top