Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for globalLocalDrivesMu (0.3 sec)

  1. cmd/peer-s3-server.go

    	peerS3BucketForceDelete = "force-delete"
    )
    
    func healBucketLocal(ctx context.Context, bucket string, opts madmin.HealOpts) (res madmin.HealResultItem, err error) {
    	globalLocalDrivesMu.RLock()
    	localDrives := cloneDrives(globalLocalDrives)
    	globalLocalDrivesMu.RUnlock()
    
    	// Initialize sync waitgroup.
    	g := errgroup.WithNErrs(len(localDrives))
    
    	// Disk states slices
    	beforeState := make([]string, len(localDrives))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  2. cmd/storage-rest-server.go

    )
    
    func getStorageViaEndpoint(endpoint Endpoint) StorageAPI {
    	globalLocalDrivesMu.RLock()
    	defer globalLocalDrivesMu.RUnlock()
    	if len(globalLocalSetDrives) == 0 {
    		for _, drive := range globalLocalDrives {
    			if drive != nil && drive.Endpoint().Equal(endpoint) {
    				return drive
    			}
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  3. cmd/erasure-sets.go

    				if disk == nil {
    					continue
    				}
    
    				if disk.IsLocal() && globalIsDistErasure {
    					globalLocalDrivesMu.RLock()
    					ldisk := globalLocalSetDrives[poolIdx][i][j]
    					if ldisk == nil {
    						globalLocalDrivesMu.RUnlock()
    						continue
    					}
    					disk.Close()
    					disk = ldisk
    					globalLocalDrivesMu.RUnlock()
    				}
    
    				innerWg.Add(1)
    				go func(disk StorageAPI, i, j int) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 37.7K bytes
    - Viewed (5)
  4. cmd/globals.go

    	globalServiceFreezeMu  sync.Mutex // Updates.
    
    	// List of local drives to this node, this is only set during server startup,
    	// and is only mutated by HealFormat. Hold globalLocalDrivesMu to access.
    	globalLocalDrives   []StorageAPI
    	globalLocalDrivesMu sync.RWMutex
    
    	globalDriveMonitoring = env.Get("_MINIO_DRIVE_ACTIVE_MONITORING", config.EnableOn) == config.EnableOn
    
    	// Is MINIO_CI_CD set?
    	globalIsCICD bool
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  5. cmd/metrics-resource.go

    		updateDriveIOStats(dm.IOStats, latestStats, labels)
    		latestDriveStats[d] = dm.IOStats
    	}
    	lastDriveStatsRefresh = time.Now().UTC()
    	latestDriveStatsMu.Unlock()
    
    	globalLocalDrivesMu.RLock()
    	localDrives := cloneDrives(globalLocalDrives)
    	globalLocalDrivesMu.RUnlock()
    
    	for _, d := range localDrives {
    		di, err := d.DiskInfo(GlobalContext, DiskInfoOptions{})
    		labels := map[string]string{"drive": di.Endpoint}
    		if err == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  6. cmd/background-newdisks-heal-ops.go

    		go monitorLocalDisksAndHeal(ctx, z)
    	}
    }
    
    func getLocalDisksToHeal() (disksToHeal Endpoints) {
    	globalLocalDrivesMu.RLock()
    	localDrives := cloneDrives(globalLocalDrives)
    	globalLocalDrivesMu.RUnlock()
    	for _, disk := range localDrives {
    		_, err := disk.GetDiskID()
    		if errors.Is(err, errUnformattedDisk) {
    			disksToHeal = append(disksToHeal, disk.Endpoint())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool.go

    			if storageDisk != nil && storageDisk.IsLocal() {
    				localDrives = append(localDrives, storageDisk)
    			}
    		}
    	}
    
    	if !globalIsDistErasure {
    		globalLocalDrivesMu.Lock()
    		globalLocalDrives = localDrives
    		globalLocalDrivesMu.Unlock()
    	}
    
    	z.decommissionCancelers = make([]context.CancelFunc, len(z.serverPools))
    
    	// Initialize the pool meta, but set it to not save.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  8. cmd/peer-rest-server.go

    		return
    	}
    }
    
    var errUnsupportedSignal = fmt.Errorf("unsupported signal")
    
    func waitingDrivesNode() map[string]madmin.DiskMetrics {
    	globalLocalDrivesMu.RLock()
    	localDrives := cloneDrives(globalLocalDrives)
    	globalLocalDrivesMu.RUnlock()
    
    	errs := make([]error, len(localDrives))
    	infos := make([]DiskInfo, len(localDrives))
    	for i, drive := range localDrives {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  9. cmd/bucket-replication.go

    				return
    			}
    			err = v.EncodeMsg(mw)
    			mw.Flush()
    			w.CloseWithError(err)
    		}()
    		return r
    	}
    
    	globalLocalDrivesMu.RLock()
    	localDrives := cloneDrives(globalLocalDrives)
    	globalLocalDrivesMu.RUnlock()
    
    	for _, localDrive := range localDrives {
    		r := newReader()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
Back to top