Skip to content
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

为了CacheCountTask周期性的输出存储的Publisher的统计信息(Count一下),需要申请size等于data节点存储的publisher总数的map,内存使用上是不合理的 #317

Open
dbl-x opened this issue Apr 12, 2023 · 2 comments

Comments

@dbl-x
Copy link

dbl-x commented Apr 12, 2023

Your question

如标题描述。
另外一个问题,DatumCache的访问最终都代理到DatumStorage,并没有cache这层含义,那DatumCache的作用是什么?

Your scenes

image

如上图,在每60秒的统计任务中都会申请出一个大Map。

Your advice

统计信息可以维护起来,比如添加、移除Publisher的时候更新count,或者内部Map直接返回size。

Environment

  • SOFARegistry version: 6.1.9
  • JVM version (e.g. java -version):
  • OS version (e.g. uname -a):
  • Maven version:
  • IDE version:
@nobodyiam
Copy link
Member

Good point!

@aaronkanze
Copy link

今天带了同事和运维人员现场了解,很有收获和亲切感,希望有更多伙伴一起努力!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants