-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat]curvefs/mds: change some config on fly #2813
[feat]curvefs/mds: change some config on fly #2813
Conversation
bb66c12
to
ab5cafe
Compare
ab5cafe
to
2fd200f
Compare
cicheck |
2e762fe
to
113aa40
Compare
spell weird... TimeOut -> Timeout maybe |
// the maximun peroid that heartbeat is missed without | ||
// setting the metaserver to offline status and alarm. | ||
// scheduling will depend on this status of metaserver | ||
DEFINE_uint64(heartbeat_OffLineTimeOutMs, 1800000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its name is a hyper monster 👿, just heartbeat_offline_timeout_ms
// background process will alarm during the inspection once it | ||
// finds out that heartbeat is missed after heartbeatMissTimeOut peroid | ||
DEFINE_uint64( | ||
heartbeat_MissTimeOutMs, 30000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@@ -129,7 +140,7 @@ bool TrashImpl::NeedDelete(const TrashItem &item) { | |||
// if fs recycleTimeHour is not 0, return true | |||
uint64_t recycleTimeHour = GetFsRecycleTimeHour(item.fsId); | |||
if (recycleTimeHour == 0) { | |||
return ((now - item.dtime) >= options_.expiredAfterSec); | |||
return ((now - item.dtime) >= FLAGS_trash_expiredAfterSec); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if so, should options_.expiredAfterSec
be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if so, should
options_.expiredAfterSec
be removed?
The reason for retaining this is to consider that the configuration-related content will be rewritten later. If you keep it, you can know that there is such a configuration item.
while (sleeper_.wait_for(std::chrono::seconds(options_.scanPeriodSec))) { | ||
ScanEveryTrash(); | ||
} | ||
while (sleeper_.wait_for(std::chrono::seconds(FLAGS_trash_scanPeriodSec))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto, remove options_.scanPeriodSec
?
1. use gflag to change mds heartbeatMissTimeOutMs on fly 2. use gflag to change metaserver transh.expiredAfterSec on fly 3. use gflag to change metaserver transh.scanPeriodSec on fly 4. use gflag to change client fs.disableXattr on fly 5. set client s3.maxAsyncRequestInflightBytes default vale to 1GiB Signed-off-by: Cyber-SiKu <Cyber-SiKu@outlook.com>
113aa40
to
5c77924
Compare
fix |
cicheck |
5 similar comments
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
What problem does this PR solve?
Issue Number: #xxx
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:
Use the following command to observe the status of the corresponding metaserver
watch -n 1 "curl -X POST http://xxx.xxx.xxx.xxx:xxxx/TopologyService/ListMetaServer -H 'Content-Type: application/protobuf' -d $'{\n \"serverID\": 1\n}' | jq"
Use the following command to modify the corresponding configuration items:
Increase the log level of deleted inodes and observe the logs.
curl xxx.xxx.xxx.xxx:xxxx/flags/fs_disableXattr\?setvalue=true
curl xxx.xxx.xxx.xxx:xxxx/flags/fs_disableXattr\?setvalue=false
Observe whether the change time of onlineState changes according to the modification.
Side effects(Breaking backward compatibility? Performance regression?):
Check List