cubefs icon indicating copy to clipboard operation
cubefs copied to clipboard

[Enhance]Master processing admin/getIp commands should be modified to not load persistent data

Open true1064 opened this issue 3 years ago • 1 comments

When master handling HTTP API “admin/getIp", it calls loadClusterValue(), which loads the persisted metadata and stores it to memory. For the admin/getIp API: (1) It is not necessary to read persistent data. Directly return the value in memory is ok, which can reduce the performance overhead; (2) This should be a read-only interface and should not trigger changes to values in memory;

true1064 avatar Aug 31 '22 02:08 true1064

1

leonrayang avatar Sep 02 '22 07:09 leonrayang