-
Notifications
You must be signed in to change notification settings - Fork 87
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
Configuring ringbuffer capacity through helm #351
Comments
Hi @shahamit You can configure the capacity of ring buffer at runtime. The question isn't directly related to Helm charts. Here is an example of your use-case. var ringBufferConfig = new RingbufferConfig();
ringBufferConfig.setName("ringbuff")
.setCapacity(9000);
hz.getConfig().addRingBufferConfig(ringBufferConfig);
var ringBuffer = hz.getRingbuffer("ringbuff"); You can get more information about ring buffer and its configuration. |
We have two clients to Is there a way to configure the default capacity of the ring buffer when creating the hazelcast instance so that any new ring buffers created are created with that capacity? Current its 10000. |
There is no way to configure default values of any configuration. You can statically configure ringbuffers with their predefined names, or you can dynamically configure ringbuffers using client at runtime. In Hazelcast config file, you can only configure ringbuffers by their specific names. To configure via Helm charts: # Hazelcast properties
hazelcast:
yaml:
hazelcast:
ringbuffer:
rb:
capacity: 2000 |
Ok I understand. So in my case since the ring buffers are created
dynamically I would need to configure the capacity in both the producer and
consumer code right?
Thanks
…On Mon 12 Jun, 2023, 7:50 PM Semih Buyukgungor, ***@***.***> wrote:
There is no way to configure default values of any configuration. You can
statically configure ringbuffers with their predefined names, or you can
dynamically configure ringbuffers using client at runtime.
—
Reply to this email directly, view it on GitHub
<#351 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJY7BRTNKJX5LWTJDXWYFTXK4QTLANCNFSM6AAAAAAZAWOK7M>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
You need to configure If you have a guarantee that the So, it is totally depends on your application design. |
We are deploying hazelcast cluster through helm charts. Our client code (java) creates ring buffers at runtime. The name of the ring buffer is dynamically determined.
How do I configure the capacity of the ring buffer? Is it possible to configure it at runtime? If not is there a default capacity that can be configured?
Thanks.
The text was updated successfully, but these errors were encountered: