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.
Click to show internal directories.
Click to hide internal directories.