profile

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CfgNodeProfile is the key to set the profile to use.
	CfgNodeProfile = "node.profile"

	// AutoProfileName is the name of the automatic profile.
	AutoProfileName = "auto"
)

Variables

View Source
var (
	Profile8GB = &profile.Profile{
		Caches: &profile.Caches{
			Addresses: &profile.CacheOpts{
				CacheTime:                  "10s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Children: &profile.CacheOpts{
				CacheTime:                  "30s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Indexations: &profile.CacheOpts{
				CacheTime:                  "10s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Milestones: &profile.CacheOpts{
				CacheTime:                  "10s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Messages: &profile.CacheOpts{
				CacheTime:                  "30s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			UnreferencedMessages: &profile.CacheOpts{
				CacheTime:                  "500ms",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			IncomingMessagesFilter: &profile.CacheOpts{
				CacheTime:                  "5s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
		},
	}

	Profile4GB = &profile.Profile{
		Caches: &profile.Caches{
			Addresses: &profile.CacheOpts{
				CacheTime:                  "5s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Children: &profile.CacheOpts{
				CacheTime:                  "15s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Indexations: &profile.CacheOpts{
				CacheTime:                  "5s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Milestones: &profile.CacheOpts{
				CacheTime:                  "5s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Messages: &profile.CacheOpts{
				CacheTime:                  "15s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			UnreferencedMessages: &profile.CacheOpts{
				CacheTime:                  "500ms",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			IncomingMessagesFilter: &profile.CacheOpts{
				CacheTime:                  "5s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
		},
	}

	Profile2GB = &profile.Profile{
		Caches: &profile.Caches{
			Addresses: &profile.CacheOpts{
				CacheTime:                  "200ms",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Children: &profile.CacheOpts{
				CacheTime:                  "5s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Indexations: &profile.CacheOpts{
				CacheTime:                  "200ms",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Milestones: &profile.CacheOpts{
				CacheTime:                  "2.5s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Messages: &profile.CacheOpts{
				CacheTime:                  "5s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			UnreferencedMessages: &profile.CacheOpts{
				CacheTime:                  "100ms",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			IncomingMessagesFilter: &profile.CacheOpts{
				CacheTime:                  "2.5s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
		},
	}

	Profile1GB = &profile.Profile{
		Caches: &profile.Caches{
			Addresses: &profile.CacheOpts{
				CacheTime:                  "100ms",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Children: &profile.CacheOpts{
				CacheTime:                  "1.5s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Indexations: &profile.CacheOpts{
				CacheTime:                  "100ms",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Milestones: &profile.CacheOpts{
				CacheTime:                  "500ms",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			Messages: &profile.CacheOpts{
				CacheTime:                  "1.5s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			UnreferencedMessages: &profile.CacheOpts{
				CacheTime:                  "100ms",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
			IncomingMessagesFilter: &profile.CacheOpts{
				CacheTime:                  "2s",
				ReleaseExecutorWorkerCount: 10,
				LeakDetectionOptions: &profile.LeakDetectionOpts{
					Enabled:               false,
					MaxConsumersPerObject: 20,
					MaxConsumerHoldTime:   "100s",
				},
			},
		},
	}
)
View Source
var (
	CorePlugin *node.CorePlugin
)
View Source
var (
	ErrNotEnoughMemory = errors.New("not enough system memory")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL