Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for GOMAXPROCS (0.14 sec)

  1. cmd/background-heal-ops.go

    				} else {
    					bgSeq.countFailed(res.Type)
    				}
    			}
    		case <-ctx.Done():
    			return
    		}
    	}
    }
    
    func newHealRoutine() *healRoutine {
    	workers := runtime.GOMAXPROCS(0) / 2
    
    	if envHealWorkers := env.Get("_MINIO_HEAL_WORKERS", ""); envHealWorkers != "" {
    		if numHealers, err := strconv.Atoi(envHealWorkers); err != nil {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. internal/config/errors.go

    		"",
    		"MINIO_API_REPLICATION_WORKERS: should be > 0",
    	)
    
    	ErrInvalidTransitionWorkersValue = newErrFn(
    		"Invalid value for transition workers",
    		"",
    		"MINIO_API_TRANSITION_WORKERS: should be >= GOMAXPROCS/2",
    	)
    	ErrInvalidBatchKeyRotationWorkersWait = newErrFn(
    		"Invalid value for batch key rotation workers wait",
    		"Please input a non-negative duration",
    		"keyrotation_workers_wait should be > 0ms",
    	)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Jul 10 16:57:01 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. cmd/event-notification.go

    	if objAPI == nil {
    		return errServerNotInitialized
    	}
    
    	if err := evnot.targetList.Add(globalNotifyTargetList.Targets()...); err != nil {
    		return err
    	}
    	evnot.targetList = evnot.targetList.Init(runtime.GOMAXPROCS(0)) // TODO: make this configurable (y4m4)
    	return nil
    }
    
    // AddRulesMap - adds rules map for bucket name.
    func (evnot *EventNotifier) AddRulesMap(bucketName string, rulesMap event.RulesMap) {
    	evnot.Lock()
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. cmd/dynamic-timeouts_test.go

    	}
    }
    
    func TestDynamicTimeoutConcurrent(t *testing.T) {
    	// Race test.
    	timeout := newDynamicTimeout(time.Second, time.Millisecond)
    	var wg sync.WaitGroup
    	for i := 0; i < runtime.GOMAXPROCS(0); i++ {
    		wg.Add(1)
    		rng := rand.New(rand.NewSource(int64(i)))
    		go func() {
    			defer wg.Done()
    			for i := 0; i < 100; i++ {
    				for j := 0; j < 100; j++ {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Oct 14 10:08:40 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  5. cmd/handler-api.go

    		MaxLWorkers: t.replicationMaxLWorkers,
    	}
    }
    
    func (t *apiConfig) getTransitionWorkers() int {
    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    	if t.transitionWorkers <= 0 {
    		return runtime.GOMAXPROCS(0) / 2
    	}
    
    	return t.transitionWorkers
    }
    
    func (t *apiConfig) isSyncEventsEnabled() bool {
    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    	return t.syncEvents
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Sep 26 17:07:10 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. internal/event/targetlist.go

    			TotalEvents:      stats.totalEvents,
    		}
    	}
    
    	return t
    }
    
    func (list *TargetList) startSendWorkers(workerCount int) {
    	if workerCount == 0 {
    		workerCount = runtime.GOMAXPROCS(0)
    	}
    	wk, err := workers.New(workerCount)
    	if err != nil {
    		panic(err)
    	}
    	for i := 0; i < workerCount; i++ {
    		wk.Take()
    		go func() {
    			defer wk.Give()
    
    			for {
    				select {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. cmd/batch-rotate.go

    				return false
    			}
    		}
    		return true
    	}
    
    	workerSize, err := strconv.Atoi(env.Get("_MINIO_BATCH_KEYROTATION_WORKERS", strconv.Itoa(runtime.GOMAXPROCS(0)/2)))
    	if err != nil {
    		return err
    	}
    
    	wk, err := workers.New(workerSize)
    	if err != nil {
    		// invalid worker size.
    		return err
    	}
    
    	ctx, cancel := context.WithCancel(ctx)
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  8. cmd/global-heal.go

    	if err != nil {
    		return fmt.Errorf("unable to get disk information before healing it: %w", err)
    	}
    
    	var numHealers uint64
    
    	if numCores := uint64(runtime.GOMAXPROCS(0)); info.NRRequests > numCores {
    		numHealers = numCores / 4
    	} else {
    		numHealers = info.NRRequests / 4
    	}
    	if numHealers < 4 {
    		numHealers = 4
    	}
    	// allow overriding this value as well..
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  9. cmd/server-main.go

    	}
    
    	maxProcs := runtime.GOMAXPROCS(0)
    	cpuProcs := runtime.NumCPU()
    	if maxProcs < cpuProcs {
    		warnings = append(warnings, color.YellowBold("Detected GOMAXPROCS(%d) < NumCPU(%d), please make sure to provide all PROCS to MinIO for optimal performance",
    			maxProcs, cpuProcs))
    	}
    
    	// Initialize grid
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (3)
  10. cmd/batch-expire.go

    	}
    
    	globalBatchJobsMetrics.save(job.ID, ri)
    	lastObject := ri.Object
    
    	now := time.Now().UTC()
    
    	workerSize, err := strconv.Atoi(env.Get("_MINIO_BATCH_EXPIRATION_WORKERS", strconv.Itoa(runtime.GOMAXPROCS(0)/2)))
    	if err != nil {
    		return err
    	}
    
    	wk, err := workers.New(workerSize)
    	if err != nil {
    		// invalid worker size.
    		return err
    	}
    
    	ctx, cancelCause := context.WithCancelCause(ctx)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top