summaryrefslogtreecommitdiff
path: root/internal/constants/limits.go
blob: 5b871ce9129bf258dc3f6aefedf70c46fc00fa88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package constants

// Numeric limits and configuration values
const (
	// MaxFlushRetries is the maximum number of flush retry attempts
	MaxFlushRetries = 10

	// MaxReadCommandRetries is the maximum number of read command retries
	MaxReadCommandRetries = 5

	// DefaultConnectionsPerCPU is the default number of connections per CPU
	DefaultConnectionsPerCPU = 10

	// DefaultSSHPort is the default SSH server port
	DefaultSSHPort = 2222

	// InterruptTimeoutSeconds is the timeout for interrupt handling
	InterruptTimeoutSeconds = 3

	// MaxConcurrentCats is the maximum number of concurrent cat operations
	MaxConcurrentCats = 2

	// MaxConcurrentTails is the maximum number of concurrent tail operations
	MaxConcurrentTails = 50

	// MaxConnections is the maximum total number of connections
	MaxConnections = 10

	// HostKeyBits is the number of bits for SSH host keys
	HostKeyBits = 4096

	// DefaultMaxLineLength is the default maximum line length (1KB)
	DefaultMaxLineLength = 1024

	// ServerMaxLineLength is the server maximum line length (1MB)
	ServerMaxLineLength = 1024 * 1024

	// MaxSymlinkDepth is the maximum depth for following symlinks
	MaxSymlinkDepth = 100

	// DefaultMapReduceRowsLimit is the default limit for MapReduce output rows
	DefaultMapReduceRowsLimit = 10

	// MapReduceUnlimited indicates no limit on MapReduce rows
	MapReduceUnlimited = -1

	// HealthOKStatus is the status code for healthy service
	HealthOKStatus = 0

	// HealthCriticalStatus is the status code for critical health issues
	HealthCriticalStatus = 2

	// PercentageMultiplier is used for percentage calculations
	PercentageMultiplier = 100.0
)