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
How much memory should we use for broker and namesrv when using cluster mode? #614
Comments
Hello,the machine configuration needs to depend on your messages. |
I think this is the config and machine-resource for the broker node. How about advices about config and machine-resource for namesrv machine? |
I still have some questions, 3Q~ 1.And how about the benchmark when using these resource and config? |
And we plan to use multi master, no slave. |
namesrv manage broker info and topic info and store all info in the memory,so i think 16g mem is more |
3Q so much~~ |
3Q for your answer, but I still have some confused. 1.the namesrv just save broker and topic info, I think they cost memory little, is 16G is too large? I think even 8G is also too large, is this right? 2.About lost message when only using master, is this happen only when master disk is wrong? I mean if we don't consider the disk broken, the rocketmq won't lose message, is this right? 3.If we use slave feature, is it will have some influences about the qps? And How big is the impact? 4.And what about the qps when using the config as you advice? |
@hepyu 2.About lost message when only using master, is this happen only when master disk is wrong? I mean if we don't consider the disk broken, the rocketmq won't lose message, is this right? |
How could I understand "it depends on your topics", is this mean if topics/queues/brokers are too many, the infos will cost much more memory? But will they cost 8g? In other words, I mean , 8g memory of namesrv could hold how many topics/queues/brokers? Just to control the money if biz accept...
yeah, it is, but I think the broker would run stablely at most of the time, if it is and we could accept the little crase case about broker, is this make some sence? And What about the disk type? namesrv and broker are all ssd?
Yes, I agree. Just to control the money if biz accept...
Is this tps running under these resources as you adviced before? |
@hepyu |
The key is to tune the JVM. A timeout occurs when the GC STW affects the execution of the thread |
First, 3Q for your work, after research, we decided to use rocketmq, but we met some problem when deploying rocketmq cluster.
RT:
How much memory should we use for broker and namesrv when using cluster mode?
I noticed the default memory is set up to 4G of namesrv, 8G of broker.
And direct memory is set up to 15G like this:
MaxDirectMemorySize=15g
Is that mean I should use 30G for every namesrv, broker? that looks unreasonable.
And, is some advice about memory? 3Q so much.
The text was updated successfully, but these errors were encountered: