Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for collections (0.19 sec)

  1. internal/http/server.go

    	// DefaultShutdownTimeout - default shutdown timeout to gracefully shutdown server.
    	DefaultShutdownTimeout = 5 * time.Second
    
    	// DefaultIdleTimeout for idle inactive connections
    	DefaultIdleTimeout = 30 * time.Second
    
    	// DefaultReadHeaderTimeout for very slow inactive connections
    	DefaultReadHeaderTimeout = 30 * time.Second
    
    	// DefaultMaxHeaderBytes - default maximum HTTP header size in bytes.
    	DefaultMaxHeaderBytes = 1 * humanize.MiByte
    )
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 09 21:25:16 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. internal/rest/rpc-stats.go

    	if v := atomic.LoadUint64(&globalStats.tcpDialCount); v > 0 {
    		s.DialAvgDuration = atomic.LoadUint64(&globalStats.tcpDialTotalDur) / v
    	}
    	return s
    }
    
    // Return a function which update the global stats related to tcp connections
    func setupReqStatsUpdate(req *http.Request) (*http.Request, func()) {
    	var dialStart, dialEnd int64
    
    	trace := &httptrace.ClientTrace{
    		ConnectStart: func(network, addr string) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Sep 29 16:27:58 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  3. internal/config/lambda/event/targetlist.go

    )
    
    // Target - lambda target interface
    type Target interface {
    	ID() TargetID
    	IsActive() (bool, error)
    	Send(Event) (*http.Response, error)
    	Stat() TargetStat
    	Close() error
    }
    
    // TargetStats is a collection of stats for multiple targets.
    type TargetStats struct {
    	TargetStats map[string]TargetStat
    }
    
    // TargetStat is the stats of a single target.
    type TargetStat struct {
    	ID             TargetID
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  4. cmd/storage-errors.go

    // StorageErr represents error generated by xlStorage call.
    type StorageErr string
    
    func (h StorageErr) Error() string {
    	return string(h)
    }
    
    // Collection of basic errors.
    var baseErrs = []error{
    	errDiskNotFound,
    	errFaultyDisk,
    	errFaultyRemoteDisk,
    }
    
    var baseIgnoredErrs = baseErrs
    
    // Is a one place function which converts all os.PathError
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. internal/event/target/nats.go

    			return nil
    		}
    		return eErr
    	}
    
    	if err := target.send(eventData); err != nil {
    		return err
    	}
    
    	return target.store.Del(key.Name)
    }
    
    // Close - closes underneath connections to NATS server.
    func (target *NATSTarget) Close() (err error) {
    	close(target.quitCh)
    	if target.stanConn != nil {
    		// closing the streaming connection does not close the provided NATS connection.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 27 18:11:55 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  6. cmd/metrics.go

    }
    
    // Describe sends the super-set of all possible descriptors of metrics
    func (c *minioCollector) Describe(ch chan<- *prometheus.Desc) {
    	ch <- c.desc
    }
    
    // Collect is called by the Prometheus registry when collecting metrics.
    func (c *minioCollector) Collect(ch chan<- prometheus.Metric) {
    	// Expose MinIO's version information
    	minioVersionInfo.WithLabelValues(Version, CommitID).Set(1.0)
    
    	storageMetricsPrometheus(ch)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 06:48:36 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  7. cmd/globals.go

    	globalDriveMonitoring = env.Get("_MINIO_DRIVE_ACTIVE_MONITORING", config.EnableOn) == config.EnableOn
    
    	// Is MINIO_CI_CD set?
    	globalIsCICD bool
    
    	globalRootDiskThreshold uint64
    
    	// Used for collecting stats for netperf
    	globalNetPerfMinDuration     = time.Second * 10
    	globalNetPerfRX              netPerfRX
    	globalSiteNetPerfRX          netPerfRX
    	globalObjectPerfBucket       = "minio-perf-test-tmp-bucket"
    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)
  8. cmd/metrics-v2.go

    // Describe sends the super-set of all possible descriptors of metrics
    func (c *minioBucketCollector) Describe(ch chan<- *prometheus.Desc) {
    	ch <- c.desc
    }
    
    // Collect is called by the Prometheus registry when collecting metrics.
    func (c *minioBucketCollector) Collect(out chan<- prometheus.Metric) {
    	var wg sync.WaitGroup
    	publish := func(in <-chan MetricV2) {
    		defer wg.Done()
    		for metric := range in {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  9. internal/grid/debug.go

    		}
    		for _, server := range t.Servers {
    			server.Close()
    		}
    		for _, listener := range t.Listeners {
    			listener.Close()
    		}
    	})
    }
    
    // WaitAllConnect will wait for all connections to be established.
    func (t *TestGrid) WaitAllConnect(ctx context.Context) {
    	for _, manager := range t.Managers {
    		for _, remote := range manager.Targets() {
    			if manager.HostName() == remote {
    				continue
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 08 18:15:27 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  10. internal/http/listener.go

    }
    
    // newHTTPListener - creates new httpListener object which is interface compatible to net.Listener.
    // httpListener is capable to
    // * listen to multiple addresses
    // * controls incoming connections only doing HTTP protocol
    func newHTTPListener(ctx context.Context, serverAddrs []string, opts TCPOptions) (listener *httpListener, listenErrs []error) {
    	listeners := make([]net.Listener, 0, len(serverAddrs))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 5.6K bytes
    - Viewed (0)
Back to top