Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for LoadRebalanceMeta (0.23 sec)

  1. 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))
    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)
  2. 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)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  3. 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{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  4. 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{}
    	err := r.load(ctx, z.serverPools[0])
    	if err != nil {
    		if errors.Is(err, errConfigNotFound) {
    			return nil
    		}
    		return err
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26.5K 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
    	err := z.loadRebalanceMeta(ctx)
    	if err != nil {
    		return fmt.Errorf("failed to load rebalance data: %w", err)
    	}
    
    	// Start rebalance routine
    	z.StartRebalance()
    
    	meta := poolMeta{}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 40.4K bytes
    - Viewed (1)
  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
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
Back to top