cubefs/remotecache/flashgroupmanager/const.go
chihe 9c561ac9e3 feat(flashgroupmaster): support raft
close:#1000167427

Signed-off-by: chihe <chihe@oppo.com>
(cherry picked from commit b7af94e2a4)
2025-12-24 16:59:49 +08:00

35 lines
784 B
Go

package flashgroupmanager
import (
"github.com/cubefs/cubefs/util"
)
const (
LRUCacheSize = 3 << 30
WriteBufferSize = 4 * util.MB
)
const (
idKey = "id"
addrKey = "addr"
)
const (
keySeparator = "#"
clusterAcronym = "c"
maxCommonIDKey = keySeparator + "max_common_id"
clusterPrefix = keySeparator + clusterAcronym + keySeparator
flashNodePrefix = keySeparator + "fn" + keySeparator
flashGroupPrefix = keySeparator + "fg" + keySeparator
)
const (
opSyncAllocCommonID uint32 = 0x0C
opSyncAddFlashNode uint32 = 0x6A
opSyncDeleteFlashNode uint32 = 0x6B
opSyncUpdateFlashNode uint32 = 0x6C
opSyncAddFlashGroup uint32 = 0x6D
opSyncDeleteFlashGroup uint32 = 0x6E
opSyncUpdateFlashGroup uint32 = 0x6F
opSyncPutCluster uint32 = 0x0D
)