Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetClusterInfo (0.28 sec)

  1. cmd/site-replication-utils.go

    func (sm *siteResyncMetrics) load(ctx context.Context, objAPI ObjectLayer) error {
    	if objAPI == nil {
    		return errServerNotInitialized
    	}
    	info, err := globalSiteReplicationSys.GetClusterInfo(ctx)
    	if err != nil {
    		return err
    	}
    	if !info.Enabled {
    		return nil
    	}
    	for _, peer := range info.Sites {
    		if peer.DeploymentID == globalDeploymentID() {
    			continue
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.9K bytes
    - Viewed (1)
  2. cmd/perf-tests.go

    	r := &netperfReader{eof: make(chan struct{})}
    	r.buf = make([]byte, 128*humanize.KiByte)
    	rand.Read(r.buf)
    
    	clusterInfos, err := globalSiteReplicationSys.GetClusterInfo(ctx)
    	if err != nil {
    		return madmin.SiteNetPerfNodeResult{Error: err.Error()}
    	}
    
    	// Scale the number of connections from 32 -> 4 from small to large clusters.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  3. cmd/site-replication.go

    			resultsMu.Lock()
    			results.NodeResults = append(results.NodeResults, result)
    			resultsMu.Unlock()
    			return
    		}()
    	}
    	wg.Wait()
    	return
    }
    
    // GetClusterInfo - returns site replication information.
    func (c *SiteReplicationSys) GetClusterInfo(ctx context.Context) (info madmin.SiteReplicationInfo, err error) {
    	c.RLock()
    	defer c.RUnlock()
    	if !c.enabled {
    		return info, nil
    	}
    
    	info.Enabled = true
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
  4. cmd/admin-handlers-site-replication.go

    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.SiteReplicationInfoAction)
    	if objectAPI == nil {
    		return
    	}
    
    	info, err := globalSiteReplicationSys.GetClusterInfo(ctx)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	if err = json.NewEncoder(w).Encode(info); err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 09:40:39 GMT 2024
    - 19.4K bytes
    - Viewed (0)
Back to top