Skip to content

Commit

Permalink
add: merge settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
coufalja committed Jun 6, 2024
1 parent 49a80d6 commit b3b4e0b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 50 deletions.
50 changes: 0 additions & 50 deletions raft/internal/settings/hard.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,33 @@ const (
// a snapshot.
SnapshotChunkTimeoutTick uint64 = 900
)

const (
LRUMaxSessionCount = 4096
LogDBEntryBatchSize = 48
)

// BlockFileMagicNumber is the magic number used in block based snapshot files.
var BlockFileMagicNumber = []byte{0x3F, 0x5B, 0xCB, 0xF1, 0xFA, 0xBA, 0x81, 0x9F}

const (
//
// RSM
//

// SnapshotHeaderSize defines the snapshot header size in number of bytes.
SnapshotHeaderSize uint64 = 1024

//
// transport
//

// UnmanagedDeploymentID is the special deployment ID value used when no user
// deployment ID is specified.
UnmanagedDeploymentID uint64 = 1
// MaxMessageBatchSize is the max size for a single message batch sent between
// nodehosts.
MaxMessageBatchSize uint64 = LargeEntitySize
// SnapshotChunkSize is the snapshot chunk size.
SnapshotChunkSize uint64 = 2 * 1024 * 1024
)

0 comments on commit b3b4e0b

Please sign in to comment.