Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for loadRebalanceMeta (0.18 sec)

  1. cmd/admin-handlers-pools.go

    		return
    	}
    
    	writeSuccessResponseJSON(w, b)
    	// Notify peers to load rebalance.bin and start rebalance routine if they happen to be
    	// participating pool's leader node
    	globalNotificationSys.LoadRebalanceMeta(ctx, true)
    }
    
    func (a adminAPIHandlers) RebalanceStatus(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.RebalanceAdminAction)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 00:22:30 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. cmd/notification.go

    	if pools, ok := objAPI.(*erasureServerPools); ok {
    		pools.StopRebalance()
    	}
    }
    
    // LoadRebalanceMeta notifies all peers to load rebalance.bin from object layer.
    // Note: Only peers participating in rebalance operation, namely the first node
    // in each pool will load rebalance.bin.
    func (sys *NotificationSys) LoadRebalanceMeta(ctx context.Context, startRebalance bool) {
    	ng := WithNPeers(len(sys.peerClients))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool-rebalance.go

    	PoolStats       []*rebalanceStats  `msg:"rss"`    // Per-pool rebalance stats keyed by pool index
    }
    
    var errRebalanceNotStarted = errors.New("rebalance not started")
    
    func (z *erasureServerPools) loadRebalanceMeta(ctx context.Context) error {
    	r := &rebalanceMeta{}
    	if err := r.load(ctx, z.serverPools[0]); err == nil {
    		z.rebalMu.Lock()
    		z.rebalMeta = r
    		z.updateRebalanceStats(ctx)
    		z.rebalMu.Unlock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  4. cmd/peer-rest-client.go

    	conn := client.gridConn()
    	if conn == nil {
    		return nil
    	}
    	_, err := stopRebalanceRPC.Call(ctx, conn, grid.NewMSSWith(map[string]string{}))
    	return err
    }
    
    func (client *peerRESTClient) LoadRebalanceMeta(ctx context.Context, startRebalance bool) error {
    	conn := client.gridConn()
    	if conn == nil {
    		return nil
    	}
    	_, err := loadRebalanceMetaRPC.Call(ctx, conn, grid.NewMSSWith(map[string]string{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool-decom.go

    // in 'pool.bin', this is eventually used for decommissioning the pool.
    func (z *erasureServerPools) Init(ctx context.Context) error {
    	// Load rebalance metadata if present
    	if err := z.loadRebalanceMeta(ctx); err == nil {
    		// Start rebalance routine if we can reload rebalance metadata.
    		z.StartRebalance()
    	}
    
    	meta := poolMeta{}
    	if err := meta.load(ctx, z.serverPools[0], z.serverPools); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  6. cmd/peer-rest-server.go

    	}
    
    	startRebalance, err := strconv.ParseBool(mss.Get(peerRESTStartRebalance))
    	if err != nil {
    		return np, grid.NewRemoteErr(err)
    	}
    
    	if err := pools.loadRebalanceMeta(context.Background()); err != nil {
    		return np, grid.NewRemoteErr(err)
    	}
    
    	if startRebalance {
    		go pools.StartRebalance()
    	}
    
    	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