Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for peerClients (0.2 sec)

  1. cmd/peer-s3-client.go

    	opts.Remove = isAllBucketsNotFound(poolErrs)
    	opts.Recreate = !opts.Remove
    
    	g = errgroup.WithNErrs(len(sys.peerClients))
    	healBucketResults := make([]madmin.HealResultItem, len(sys.peerClients))
    	for idx, client := range sys.peerClients {
    		idx := idx
    		client := client
    		g.Go(func() error {
    			if client == nil {
    				return errPeerOffline
    			}
    			res, err := client.HealBucket(ctx, bucket, opts)
    			if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  2. cmd/notification.go

    func (sys *NotificationSys) restClientFromHash(s string) (client *peerRESTClient) {
    	if len(sys.peerClients) == 0 {
    		return nil
    	}
    	peerClients := sys.allPeerClients
    	if len(peerClients) == 0 {
    		return nil
    	}
    	idx := xxhash.Sum64String(s) % uint64(len(peerClients))
    	return peerClients[idx]
    }
    
    // GetPeerOnlineCount gets the count of online and offline nodes.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  3. cmd/perf-tests.go

    	connectionsPerPeer := 16
    
    	if len(globalNotificationSys.peerClients) > 16 {
    		// For a large cluster it's enough to have 1 connection per peer to saturate the network.
    		connectionsPerPeer = 1
    	}
    
    	errStr := ""
    	var wg sync.WaitGroup
    	for index := range globalNotificationSys.peerClients {
    		if globalNotificationSys.peerClients[index] == nil {
    			continue
    		}
    		go func(index int) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. cmd/speedtest.go

    			result.GETStats.TTFB = totalDownloadTTFB.Measure()
    
    			result.Size = opts.objectSize
    			result.Disks = globalEndpoints.NEndpoints()
    			result.Servers = len(globalNotificationSys.peerClients) + 1
    			result.Version = Version
    			result.Concurrent = concurrency
    
    			select {
    			case ch <- result:
    			case <-ctx.Done():
    				return
    			}
    		}
    
    		for {
    			select {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. cmd/admin-handlers.go

    			CurrentVersion: Version,
    		}
    	}
    
    	if !dryRun {
    		if globalIsDistErasure {
    			ng := WithNPeers(len(globalNotificationSys.peerClients))
    			for idx, client := range globalNotificationSys.peerClients {
    				_, ok := failedClients[idx]
    				if ok {
    					continue
    				}
    				client := client
    				ng.Go(ctx, func() error {
    					return client.CommitBinary(ctx)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
Back to top