Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for nodejs (0.13 sec)

  1. internal/dsync/dsync_test.go

    )
    
    // TestMain initializes the testing framework
    func TestMain(m *testing.M) {
    	startLockServers()
    
    	// Initialize locker clients for dsync.
    	var clnts []NetLocker
    	for i := 0; i < len(nodes); i++ {
    		clnts = append(clnts, newClient(nodes[i].URL))
    	}
    
    	ds = &Dsync{
    		GetLockers: func() ([]NetLocker, string) { return clnts, uuid.New().String() },
    		Timeouts: Timeouts{
    			Acquire:         testDrwMutexAcquireTimeout,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  2. cmd/bucket-replication-stats.go

    		ReplicatedSize:  totReplicatedSize,
    		ReplicatedCount: totReplicatedCount,
    		Failed:          totFailed.toMetric(),
    	}
    
    	var qs ReplicationQueueStats
    	for _, bs := range bucketStats {
    		qs.Nodes = append(qs.Nodes, bs.QueueStats.Nodes...)
    	}
    	qs.Uptime = UTCNow().Unix() - globalBootTime.Unix()
    
    	var ps ProxyMetric
    	for _, bs := range bucketStats {
    		ps.add(bs.ProxyStats)
    	}
    	bs = BucketStats{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  3. cmd/peer-rest-client.go

    }
    
    // GetLocks - fetch older locks for a remote node.
    func (client *peerRESTClient) GetLocks() (lockMap map[string][]lockRequesterInfo, err error) {
    	resp, err := getLocksRPC.Call(context.Background(), client.gridConn(), grid.NewMSS())
    	if err != nil || resp == nil {
    		return nil, err
    	}
    	return *resp, nil
    }
    
    // LocalStorageInfo - fetch server information for a remote node.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  4. cmd/metrics-resource.go

    		total:             "Total memory on the node",
    		memUsed:           "Used memory on the node",
    		memUsedPerc:       "Used memory percentage on the node",
    		memFree:           "Free memory on the node",
    		memShared:         "Shared memory on the node",
    		memBuffers:        "Buffers memory on the node",
    		memCache:          "Cache memory on the node",
    		memAvailable:      "Available memory on the node",
    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)
  5. cmd/object-api-utils.go

    		size = diskAssumeUnknownSize
    	}
    
    	var available uint64
    	var total uint64
    	var nDisks int
    	for _, disk := range di {
    		if disk == nil || disk.Total == 0 {
    			// Disk offline, no inodes or something else is wrong.
    			continue
    		}
    		nDisks++
    		total += disk.Total
    		available += disk.Total - disk.Used
    	}
    
    	if nDisks < len(di)/2 || nDisks <= 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  6. migrator/migrator.go

    	})
    }
    
    // CurrentDatabase returns current database name
    func (m Migrator) CurrentDatabase() (name string) {
    	m.DB.Raw("SELECT DATABASE()").Row().Scan(&name)
    	return
    }
    
    // ReorderModels reorder models according to constraint dependencies
    func (m Migrator) ReorderModels(values []interface{}, autoAdd bool) (results []interface{}) {
    	type Dependency struct {
    		*gorm.Statement
    		Depends []*schema.Schema
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  7. cni/pkg/iptables/iptables.go

    	return cfg.nlDeps.AddLoopbackRoutes(cfg.cfg)
    }
    
    func (cfg *IptablesConfigurator) delLoopbackRoute() error {
    	return cfg.nlDeps.DelLoopbackRoutes(cfg.cfg)
    }
    
    func (cfg *IptablesConfigurator) addInpodMarkIPRule() error {
    	return cfg.nlDeps.AddInpodMarkIPRule(cfg.cfg)
    }
    
    func (cfg *IptablesConfigurator) delInpodMarkIPRule() error {
    	return cfg.nlDeps.DelInpodMarkIPRule(cfg.cfg)
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  8. cmd/peer-s3-client.go

    	nodes := endpoints.GetNodes()
    	peers = make([]peerS3Client, len(nodes))
    	for i, node := range nodes {
    		if node.IsLocal {
    			peers[i] = &localPeerS3Client{node: node}
    		} else {
    			peers[i] = newPeerS3Client(node)
    		}
    		peers[i].SetPools(node.Pools)
    	}
    
    	return peers
    }
    
    // Returns a peer S3 client.
    func newPeerS3Client(node Node) peerS3Client {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/net_test.go

    	iptablesConfigurator *iptables.IptablesConfigurator
    	nlDeps               *fakeIptablesDeps
    	ipsetDeps            *ipset.MockedIpsetDeps
    }
    
    func getTestFixure(ctx context.Context) netTestFixture {
    	podNsMap := newPodNetnsCache(openNsTestOverride)
    	nlDeps := &fakeIptablesDeps{}
    	iptablesConfigurator, _ := iptables.NewIptablesConfigurator(nil, &dependencies.DependenciesStub{}, nlDeps)
    
    	ztunnelServer := &fakeZtunnel{}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  10. cmd/tier.go

    	t.requestsCount[tier] = stat
    }
    
    var (
    	// {minio_node}_{tier}_{ttlb_seconds_distribution}
    	tierTTLBMD = MetricDescription{
    		Namespace: nodeMetricNamespace,
    		Subsystem: tierSubsystem,
    		Name:      ttlbDistribution,
    		Help:      "Distribution of time to last byte for objects downloaded from warm tier",
    		Type:      gaugeMetric,
    	}
    
    	// {minio_node}_{tier}_{requests_success}
    	tierRequestsSuccessMD = MetricDescription{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top