constants

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package constants defines system-wide constants used throughout the ColonyOS server

Index

Constants

View Source
const CHANNEL_MAX_CHANNELS_PER_PROCESS = 100 // Maximum channels a single process can have

Channel Limit - Maximum number of channels per process

View Source
const CHANNEL_MAX_LOG_ENTRIES = 10000 // Maximum entries per channel, oldest removed when exceeded

Channel Log Size - Maximum number of entries per channel log

View Source
const CHANNEL_MAX_MESSAGE_SIZE = 10 * 1024 * 1024 // 10 MB - allows large payloads for database results, file transfers, etc.

Channel Message Size - Maximum payload size for channel messages

View Source
const CHANNEL_RATE_LIMIT_BURST_SIZE = 500 // Maximum burst size (token bucket capacity)
View Source
const CHANNEL_RATE_LIMIT_MESSAGES_PER_SECOND = 100.0 // Maximum sustained message rate per process

Channel Rate Limiting - Token bucket configuration for channel message rate limiting

View Source
const CHANNEL_SUBSCRIBER_BUFFER_SIZE = 10000 // Number of messages buffered per subscriber before disconnection

Channel Subscriber Buffer - Buffer size for push notification channels

View Source
const CRON_TRIGGER_PERIOD = 1000 // Period in milliseconds when cron jobs are evaluated and triggered
View Source
const DEFAULT_STALE_EXECUTOR_DURATION = 600 // Default duration in seconds (10 minutes) before an executor is considered stale

Executor Cleanup - Configuration for automatic stale executor removal

View Source
const GENERATOR_TRIGGER_PERIOD = 1000 // Period in milliseconds when generators are evaluated and triggered
View Source
const MAX_COUNT = 100 // Maximum number of items that can be requested in list operations

API Limits - Maximum values for API requests to prevent abuse

View Source
const MAX_DAYS = 30 // Maximum number of days for log search operations
View Source
const MAX_LOG_COUNT = 500 // Maximum number of log entries that can be requested at once
View Source
const MAX_PRIORITY = 50000 // Maximum allowed priority for processes (higher numbers = higher priority)
View Source
const MIN_PRIORITY = -50000 // Minimum allowed priority for processes (lower numbers = lower priority)

Process Priority Limits - Valid range for process priority values

View Source
const RELEASE_PERIOD = 1 // Period in seconds when processes are checked for max exec time or max wait time

Background Processing Periods - How frequently various system tasks run

View Source
const TESTHOST = "localhost" // Default hostname for test servers

Test Configuration - Default values used in test environments

View Source
const TESTPORT = 28088 // Default port for test servers

Variables

This section is empty.

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