1
// Copyright 2018 The CubeFS Authors.
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
7
// http://www.apache.org/licenses/LICENSE-2.0
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12
// implied. See the License for the specific language governing
13
// permissions and limitations under the License.
18
IntervalToUpdateReplica = 600 // interval to update the replica
19
IntervalToUpdatePartitionSize = 60 // interval to update the partition size
20
NumOfFilesToRecoverInParallel = 10 // number of files to be recovered simultaneously
25
NetworkProtocol = "tcp"
28
// Status of load data partition extent header
30
FinishLoadDataPartitionExtentHeader = 1
41
RaftNotStarted = "RaftNotStarted"
46
ActionNotifyFollowerToRepair = "ActionNotifyFollowerRepair"
47
ActionStreamRead = "ActionStreamRead"
48
ActionStreamFollowerRead = "ActionStreamFollowerRead"
49
ActionCreateExtent = "ActionCreateExtent:"
50
ActionMarkDelete = "ActionMarkDelete:"
51
ActionGetAllExtentWatermarks = "ActionGetAllExtentWatermarks:"
52
ActionWrite = "ActionWrite:"
53
ActionRepair = "ActionRepair:"
54
ActionDecommissionPartition = "ActionDecommissionPartition"
55
ActionAddDataPartitionRaftMember = "ActionAddDataPartitionRaftMember"
56
ActionRemoveDataPartitionRaftMember = "ActionRemoveDataPartitionRaftMember"
57
ActionDataPartitionTryToLeader = "ActionDataPartitionTryToLeader"
59
ActionCreateDataPartition = "ActionCreateDataPartition"
60
ActionLoadDataPartition = "ActionLoadDataPartition"
61
ActionDeleteDataPartition = "ActionDeleteDataPartition"
62
ActionStreamReadTinyDeleteRecord = "ActionStreamReadTinyDeleteRecord"
63
ActionSyncTinyDeleteRecord = "ActionSyncTinyDeleteRecord"
64
ActionStreamReadTinyExtentRepair = "ActionStreamReadTinyExtentRepair"
65
ActionBatchMarkDelete = "ActionBatchMarkDelete"
66
ActionUpdateVersion = "ActionUpdateVersion"
67
ActionStopDataPartitionRepair = "ActionStopDataPartitionRepair"
70
// Apply the raft log operation. Currently we only have the random write operation.
72
MinTinyExtentsToRepair = 10 // minimum number of tiny extents to repair
75
// Tiny extent has been put back to store
81
MinAvaliTinyExtentCnt = 5
100
TinyExtentRepairReadResponseArgLen = 17
101
MaxSyncTinyDeleteBufferSize = 2400000
102
MaxFullSyncTinyDeleteTime = 3600 * 24
103
MinTinyExtentDeleteRecordSyncSize = 4 * 1024 * 1024