Comments (5)
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.
https://docs.hazelcast.com/hazelcast/5.3/data-structures/ringbuffer#ringbuffer-configuration-examples
from charts.
We have two clients to hazelcast
- one of them is the data producer and another the data consumer. I assume who ever executes the above code first would create the ring buffer instance with a given capacity.
This would mean we would have to configure the ring buffer capacity at both ends leaving room for human errors.
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.
from charts.
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
from charts.
from charts.
You need to configure ringbuffer
only once just before it is created.
If you have a guarantee that the ringbuffer
is created in the producer side before the consumer tries to read data from it. Then you can configure it only in producer side and can use the ringbuffer
in consumer side without configuration.
So, it is totally depends on your application design.
from charts.
Related Issues (20)
- Add loadBalancerIP option for metric service loadbalancer
- `HZ_LICENSEKEY` should not be defined if `hazelcast.licenseKey` and `hazelcast.licenseKeySecretName` are not defined HOT 1
- update chart to for log4shell HOT 1
- Add labels to all resources HOT 1
- Ability To Create a PodDisruptionBudget HOT 1
- mancenter serialization configuration ignored
- Issue with installation via FluxCD HOT 3
- Change 'hotRestart' parameters to 'persistence' HOT 1
- How to set class-cache-mode OFF in user-code-deployment HOT 1
- add prometheusrule to the chart HOT 3
- Ingress with Prefix path : css and js files not found HOT 1
- Port name in hazelcast Service must be configurable or renamed so it's compliant with Istio naming standards HOT 1
- Service Account cannot list statefulsets HOT 2
- Misleading setting "gracefulShutdown.enabled"
- Question: What is the correct usage of `service.name` HOT 13
- Hazelcast Helm chart 5.7.1 missing from index HOT 2
- Service port name does not match port name k8s discovery is looking for in Hazelcast > 5.3.0 HOT 1
- Permit enablement of CP subsystem in hazelcast.yaml for hazelcast chart HOT 4
- OIDC configmap HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.