Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for tgts (0.06 sec)

  1. cmd/bucket-targets.go

    	if target == nil {
    		return
    	}
    	sys.RLock()
    	defer sys.RUnlock()
    	tgts := sys.targetsMap[bucket]
    	for _, tgt := range tgts {
    		if tgt.Type == target.Type &&
    			tgt.TargetBucket == target.TargetBucket &&
    			target.URL().String() == tgt.URL().String() &&
    			tgt.Credentials.AccessKey == target.Credentials.AccessKey {
    			return tgt.Arn, true
    		}
    	}
    	if !target.Type.IsValid() {
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. internal/logger/targets.go

    func initKafkaTargets(ctx context.Context, cfgMap map[string]kafka.Config) ([]Target, []error) {
    	tgts := []Target{}
    	errs := []error{}
    	for _, l := range cfgMap {
    		if l.Enabled {
    			t := kafka.New(l)
    			tgts = append(tgts, t)
    
    			e := t.Init(ctx)
    			if e != nil {
    				errs = append(errs, e)
    			}
    		}
    	}
    	return tgts, errs
    }
    
    // Split targets into two groups:
    //
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 03 15:44:50 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. cmd/metrics-v3-logger-webhook.go

    // such as failed messages and total messages.
    func loadLoggerWebhookMetrics(ctx context.Context, m MetricValues, c *metricsCache) error {
    	tgts := append(logger.SystemTargets(), logger.AuditTargets()...)
    	for _, t := range tgts {
    		labels := []string{nameL, t.String(), endpointL, t.Endpoint()}
    		m.Set(webhookFailedMessages, float64(t.Stats().FailedMessages), labels...)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 14 07:27:33 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. cmd/bucket-replication.go

    	}
    	topts := replication.ObjectOpts{Name: object}
    	tgtArns := cfg.FilterTargetArns(topts)
    	tgts = &madmin.BucketTargets{Targets: make([]madmin.BucketTarget, len(tgtArns))}
    	for i, tgtArn := range tgtArns {
    		tgt := globalBucketTargetSys.GetRemoteBucketTargetByArn(ctx, bucket, tgtArn)
    		tgts.Targets[i] = tgt
    	}
    
    	return tgts
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  5. cmd/admin-handlers-config-kv.go

    		return
    	}
    
    	result.SubSys, _, _, err = config.GetSubSys(string(kvBytes))
    	if err != nil {
    		return
    	}
    
    	tgts, err := config.ParseConfigTargetID(bytes.NewReader(kvBytes))
    	if err != nil {
    		return
    	}
    	ctx = context.WithValue(ctx, config.ContextKeyForTargetFromConfig, tgts)
    	if verr := validateConfig(ctx, result.Cfg, result.SubSys); verr != nil {
    		err = badConfigErr{Err: verr}
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. internal/config/notify/parse.go

    	if err != nil {
    		return err
    	}
    
    	for _, target := range targetList {
    		defer target.Close()
    	}
    
    	tgts, ok := ctx.Value(config.ContextKeyForTargetFromConfig).(map[string]bool)
    	if !ok {
    		tgts = make(map[string]bool)
    	}
    	for _, target := range targetList {
    		if tgts[target.ID().ID] {
    			// When target set should be online
    			yes, err := target.IsActive()
    			if err == nil && !yes {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 47K bytes
    - Viewed (0)
  7. cmd/metacache-set.go

    	rcfg, _ := globalBucketObjectLockSys.Get(o.Bucket)
    	replCfg, _, _ := globalBucketMetadataSys.GetReplicationConfig(ctx, o.Bucket)
    	tgts, _ := globalBucketTargetSys.ListBucketTargets(ctx, o.Bucket)
    	o.Lifecycle = lc
    	o.Versioning = vc
    	o.Replication = replicationConfig{
    		Config:  replCfg,
    		remotes: tgts,
    	}
    	o.Retention = rcfg
    }
    
    // newMetacache constructs a new metacache from the options.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  8. cmd/metrics-v2.go

    			maxActiveWorkersCount.Value = float64(qs.ActiveWorkers.Max)
    
    			if len(qs.XferStats) > 0 {
    				tots := qs.XferStats[Total]
    				currTransferRate.Value = tots.Curr
    				avgTransferRate.Value = tots.Avg
    				maxTransferRate.Value = tots.Peak
    			}
    			ml = []MetricV2{
    				activeWorkersCount,
    				avgActiveWorkersCount,
    				maxActiveWorkersCount,
    				currInQueueCount,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    			}
    			for tgt, st := range sizeS.replTargetStats {
    				res["repl-size-"+tgt] = strconv.FormatInt(st.replicatedSize, 10)
    				res["repl-count-"+tgt] = strconv.FormatInt(st.replicatedCount, 10)
    				if st.failedCount > 0 {
    					res["repl-failed-"+tgt] = fmt.Sprintf("%d versions, %d bytes", st.failedCount, st.failedSize)
    				}
    				if st.pendingCount > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  10. cmd/metrics-v3-replication.go

    	m.Set(replicationMaxActiveWorkers, float64(qa.Max))
    
    	if len(qs.XferStats) > 0 {
    		tots := qs.XferStats[Total]
    		m.Set(replicationAverageDataTransferRate, tots.Avg)
    		m.Set(replicationCurrentDataTransferRate, tots.Curr)
    		m.Set(replicationMaxDataTransferRate, tots.Peak)
    	}
    	m.Set(replicationRecentBacklogCount, float64(qs.MRFStats.LastFailedCount))
    
    	return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top