Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.

Conversation

@donggyu04
Copy link
Contributor

Move cache of recently used agents to distribution map.

songeunwoo
songeunwoo previously approved these changes Oct 8, 2020
@junoyoon
Copy link
Contributor

junoyoon commented Oct 8, 2020

Please describe the problem when you fix the bugs.

@donggyu04
Copy link
Contributor Author

donggyu04 commented Oct 8, 2020

@junoyoon

We are using a hazelcast dist map to store the data of recently used agents.
but in configuration, it's set to a local cache not a hazelcast dist map.

Simply the expire time that I set is not being applied. (T_T)

@donggyu04 donggyu04 force-pushed the feature/move-recent-agent-cache-to-dist-map branch from 6b49a02 to c565dbc Compare October 8, 2020 05:59
cm.addDistMap(DIST_MAP_NAME_SAMPLING, 15);
cm.addDistMap(DIST_MAP_NAME_MONITORING, 15);
cm.addDistMap(DIST_MAP_NAME_AGENT, 10);
cm.addDistMap(DIST_MAP_CACHE_RECENTLY_USED_AGENTS, 1 * DAY);
Copy link
Contributor

@junoyoon junoyoon Oct 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could u rename all const here?
I think it's not consistent b/w local and remote cache...

For example, I think the following const is better.

  • DIST_CACHE_SAMPLING
  • DIST_CACHE_RECENTLY_USED_AGENTS
  • LOCAL_CACHE_USERS

Please fix them by separate commit.

@donggyu04 donggyu04 self-assigned this Oct 8, 2020
@donggyu04 donggyu04 added the wip label Oct 8, 2020
@donggyu04 donggyu04 added 3.5.3 and removed wip labels Oct 15, 2020
@songeunwoo songeunwoo merged commit b95687b into develop Oct 19, 2020
@donggyu04 donggyu04 deleted the feature/move-recent-agent-cache-to-dist-map branch October 22, 2020 10:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants