Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for globalEndpoints (0.87 sec)

  1. cmd/admin-handlers-pools.go

    		if i, err := strconv.Atoi(v); err == nil && i >= 0 && i < len(globalEndpoints) {
    			idx = i
    		}
    	} else {
    		idx = globalEndpoints.GetPoolIdx(v)
    	}
    
    	if idx == -1 {
    		// We didn't find any matching pools, invalid input
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errInvalidArgument), r.URL)
    		return
    	}
    
    	if !proxyDecommissionRequest(ctx, globalEndpoints[idx].Endpoints[0], w, r) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Sep 04 20:47:24 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    	// Keep 100k buffered channel.
    	// If receiver cannot keep up with that we drop events.
    	traceCh := make(chan []byte, 100000)
    	peers, _ := newPeerRestClients(globalEndpoints)
    	err = globalTrace.SubscribeJSON(traceOpts.TraceTypes(), traceCh, ctx.Done(), func(entry madmin.TraceInfo) bool {
    		return shouldTrace(entry, traceOpts)
    	}, nil)
    	if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 99.6K bytes
    - Viewed (0)
  3. cmd/admin-handlers_test.go

    	// Initialize minio server config.
    	if err := newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
    		cancel()
    		return nil, err
    	}
    
    	// Initialize boot time
    	globalBootTime = UTCNow()
    
    	globalEndpoints = mustGetPoolEndpoints(0, erasureDirs...)
    
    	initAllSubsystems(ctx)
    
    	initConfigSubsystem(ctx, objLayer)
    
    	globalIAMSys.Init(ctx, objLayer, globalEtcdClient, 2*time.Second)
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  4. cmd/local-locker.go

    func (l *localLocker) getMutex() func() {
    	l.waitMutex.Add(1)
    	l.mutex.Lock()
    	l.waitMutex.Add(-1)
    	return l.mutex.Unlock
    }
    
    func (l *localLocker) String() string {
    	return globalEndpoints.Localhost()
    }
    
    func (l *localLocker) canTakeLock(resources ...string) bool {
    	for _, resource := range resources {
    		_, lockTaken := l.lockMap[resource]
    		if lockTaken {
    			return false
    		}
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. cmd/background-newdisks-heal-ops.go

    			disksToHeal = append(disksToHeal, disk.Endpoint())
    			continue
    		}
    		if h := disk.Healing(); h != nil && !h.Finished {
    			disksToHeal = append(disksToHeal, disk.Endpoint())
    		}
    	}
    	if len(disksToHeal) == globalEndpoints.NEndpoints() {
    		// When all disks == all command line endpoints
    		// this is a fresh setup, no need to trigger healing.
    		return Endpoints{}
    	}
    	return disksToHeal
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  6. cmd/bucket-metadata-sys.go

    	defer sys.RUnlock()
    
    	return sys.initialized
    }
    
    // Loads bucket metadata for all buckets into BucketMetadataSys.
    func (sys *BucketMetadataSys) init(ctx context.Context, buckets []string) {
    	count := globalEndpoints.ESCount() * 10
    	for {
    		if len(buckets) < count {
    			sys.concurrentLoad(ctx, buckets)
    			break
    		}
    		sys.concurrentLoad(ctx, buckets[:count])
    		buckets = buckets[count:]
    	}
    
    	sys.Lock()
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  7. cmd/notification.go

    		wg.Add(1)
    		go func(client *peerRESTClient, idx int) {
    			defer wg.Done()
    			info, err := client.LocalStorageInfo(ctx, metrics)
    			if err != nil {
    				info.Disks = getOfflineDisks(client.host.String(), globalEndpoints)
    			}
    			replies[idx] = info
    		}(client, i)
    	}
    	wg.Wait()
    
    	// Add local to this server.
    	replies = append(replies, objLayer.LocalStorageInfo(ctx, metrics))
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 45.9K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-decom.go

    	poolIndices := make([]int, 0, len(pools))
    	for _, pool := range pools {
    		idx := globalEndpoints.GetPoolIdx(pool.CmdLine)
    		if idx == -1 {
    			return fmt.Errorf("unexpected state present for decommission status pool(%s) not found", pool.CmdLine)
    		}
    		poolIndices = append(poolIndices, idx)
    	}
    
    	if len(poolIndices) > 0 && globalEndpoints[poolIndices[0]].Endpoints[0].IsLocal {
    		go func() {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 42.1K bytes
    - Viewed (1)
  9. cmd/common-main.go

    		}
    		updateDomainIPs(domainIPs)
    	} else {
    		// Add found interfaces IP address to global domain IPS,
    		// loopback addresses will be naturally dropped.
    		domainIPs := mustGetLocalIP4()
    		for _, host := range globalEndpoints.Hostnames() {
    			domainIPs.Add(host)
    		}
    		updateDomainIPs(domainIPs)
    	}
    
    	// In place update is true by default if the MINIO_UPDATE is not set
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  10. cmd/utils.go

    		object = obj
    	}
    	return HasSuffix(object, globalDirSuffix)
    }
    
    // Helper method to return total number of nodes in cluster
    func totalNodeCount() int {
    	totalNodesCount := len(globalEndpoints.Hostnames())
    	if totalNodesCount == 0 {
    		totalNodesCount = 1 // For standalone erasure coding
    	}
    	return totalNodesCount
    }
    
    // AuditLogOptions takes options for audit logging subsystem activity
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33K bytes
    - Viewed (0)
Back to top