Setting opened_cache_ttl in any section of 99_config.yaml doesn't applicable #1002

Closed
opened 2024-02-21 12:55:05 +00:00 by anikeev-yadro · 3 comments
Member

Expected Behavior

Setting opened_cache_ttl in default or shard:0 section of 99_config.yaml should applicable

Current Behavior

Setting opened_cache_ttl in default or shard:0 section of config.yaml doesn't applicable

Steps to Reproduce (for bugs)

1.Set parameter in default section in file /etc/frostfs/storage/conf.d/99_storage.yml

storage:
  shard:
    default: # section with the default shard parameters
      blobstor:
          opened_cache_ttl: 5m  # ttl for opened database file
          opened_cache_capacity: 17
logger:
  level: debug
  destination: journald

2.Restart frostfs-storage and see that this parameter is not applicable
3.Setting parameter in shard:0 section in file /etc/frostfs/storage/conf.d/99_storage.yml

storage:
  shard:
    0:
      mode: 'read-write'
      blobstore:
          opened_cache_ttl: 1m
          opened_cache_capacity: 18

4.Restart frostfs-storage and see that this parameter is not applicable

Regression

No

Version

FrostFS Storage node
Version: v0.37.0-rc.1-322-g2680192b
GoVersion: go1.20.1

Your Environment

Cloud

## Expected Behavior Setting `opened_cache_ttl` in `default` or `shard:0` section of `99_config.yaml` should applicable ## Current Behavior Setting `opened_cache_ttl` in `default` or `shard:0` section of `config.yaml` doesn't applicable ## Steps to Reproduce (for bugs) 1.Set parameter in `default` section in file ` /etc/frostfs/storage/conf.d/99_storage.yml` ``` storage: shard: default: # section with the default shard parameters blobstor: opened_cache_ttl: 5m # ttl for opened database file opened_cache_capacity: 17 logger: level: debug destination: journald ``` 2.Restart frostfs-storage and see that this parameter is not applicable 3.Setting parameter in shard:0 section in file ` /etc/frostfs/storage/conf.d/99_storage.yml` ``` storage: shard: 0: mode: 'read-write' blobstore: opened_cache_ttl: 1m opened_cache_capacity: 18 ``` 4.Restart frostfs-storage and see that this parameter is not applicable ## Regression No ## Version ``` FrostFS Storage node Version: v0.37.0-rc.1-322-g2680192b GoVersion: go1.20.1 ``` ## Your Environment Cloud
anikeev-yadro added the
bug
triage
labels 2024-02-21 12:55:05 +00:00
Owner

I am not sure it should be in this section, the correct one seems to be storage.shard.default.blobstor.0 (notice then ending .0)
cc @acid-ant

I am not sure it should be in this section, the correct one seems to be `storage.shard.default.blobstor.0` (notice then ending `.0`) cc @acid-ant
acid-ant self-assigned this 2024-02-21 13:16:53 +00:00
Member

@fyrchik this issue is more about investigation how parameters from default section are applied. Expect that opened_cache_ttl will have the same behavior as opened_cache_capacity, which is present in default too but not applied from this section.

@fyrchik this issue is more about investigation how parameters from `default` section are applied. Expect that `opened_cache_ttl` will have the same behavior as `opened_cache_capacity`, which is [present](https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/config/example/node.yaml#L152) in default too but not applied from this section.
fyrchik added this to the v0.39.0 milestone 2024-02-28 19:23:04 +00:00
fyrchik modified the milestone from v0.39.0 to v0.40.0 2024-05-14 14:09:10 +00:00
fyrchik self-assigned this 2024-05-15 06:47:20 +00:00
Owner

Also, the section is blobstor, not blobstore

Also, the section is `blobstor`, not `blobstore`
fyrchik added
frostfs-node
and removed
triage
labels 2024-05-15 07:10:32 +00:00
acid-ant was unassigned by fyrchik 2024-05-15 07:10:32 +00:00
Sign in to join this conversation.
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#1002
No description provided.