[SUPPORT] shard: Update metric mode_info on Init #1175

Merged
fyrchik merged 1 commit from acid-ant/frostfs-node:bugfix/upd-mode-metric-init-support into support/v0.38 2024-06-14 06:22:08 +00:00
Member

Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant requested review from storage-core-committers 2024-06-13 07:45:03 +00:00
acid-ant requested review from storage-core-developers 2024-06-13 07:45:17 +00:00
acid-ant force-pushed bugfix/upd-mode-metric-init-support from 889ec2db34 to 1a4a5789fc 2024-06-13 07:46:13 +00:00 Compare
dstepanov-yadro approved these changes 2024-06-13 07:52:56 +00:00
fyrchik approved these changes 2024-06-13 08:07:57 +00:00
acid-ant force-pushed bugfix/upd-mode-metric-init-support from 1a4a5789fc to 6067e644d6 2024-06-13 17:09:34 +00:00 Compare
Author
Member

Tested in devenv:

$ docker exec -it s01 bash
s01:/# frostfs-node --version
FrostFS Storage node
Version: v0.38.6-4-g6067e644 
$ 
$ frostfs-cli control shards detach --id 9VPtp9BwLhf7nU5tMFYA5i --config cfg.yml --endpoint s01.frostfs.devenv:8081 --wallet /home/annikifa/workspace/frostfs-dev-env/services/storage/wallet01.json
Shard mode update request successfully sent.
$ curl -s -get http://s01.frostfs.devenv:9090 | grep _mode_info |  grep 9VPtp9BwLhf7nU5tMFYA5i
frostfs_node_engine_mode_info{mode="DISABLED",shard_id="9VPtp9BwLhf7nU5tMFYA5i"} 1
$ 
$ docker exec -it s01 bash
s01:/# kill -1 1
s01:/# exit
exit
$ 
$ curl -s -get http://s01.frostfs.devenv:9090 | grep _mode_info |  grep 9VPtp9BwLhf7nU5tMFYA5i
frostfs_node_engine_mode_info{mode="READ_WRITE",shard_id="9VPtp9BwLhf7nU5tMFYA5i"} 1
frostfs_node_writecache_mode_info{mode="READ_WRITE",shard_id="9VPtp9BwLhf7nU5tMFYA5i"} 1
$ 
Tested in devenv: ``` $ docker exec -it s01 bash s01:/# frostfs-node --version FrostFS Storage node Version: v0.38.6-4-g6067e644 $ $ frostfs-cli control shards detach --id 9VPtp9BwLhf7nU5tMFYA5i --config cfg.yml --endpoint s01.frostfs.devenv:8081 --wallet /home/annikifa/workspace/frostfs-dev-env/services/storage/wallet01.json Shard mode update request successfully sent. $ curl -s -get http://s01.frostfs.devenv:9090 | grep _mode_info | grep 9VPtp9BwLhf7nU5tMFYA5i frostfs_node_engine_mode_info{mode="DISABLED",shard_id="9VPtp9BwLhf7nU5tMFYA5i"} 1 $ $ docker exec -it s01 bash s01:/# kill -1 1 s01:/# exit exit $ $ curl -s -get http://s01.frostfs.devenv:9090 | grep _mode_info | grep 9VPtp9BwLhf7nU5tMFYA5i frostfs_node_engine_mode_info{mode="READ_WRITE",shard_id="9VPtp9BwLhf7nU5tMFYA5i"} 1 frostfs_node_writecache_mode_info{mode="READ_WRITE",shard_id="9VPtp9BwLhf7nU5tMFYA5i"} 1 $ ```
fyrchik merged commit 6067e644d6 into support/v0.38 2024-06-14 06:22:07 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1175
No description provided.