Comments (4)
What command are the clients executing?
If they are trying to make a file-backed stream then it's expected.
from k8s.
@caleblloyd , I am using the official go client.
connectionOptions := []nats.Option{
// Activate retry logic if a connection cannot be established at the start.
nats.RetryOnFailedConnect(true),
nats.ReconnectHandler(func(_ *nats.Conn) {
// Note that this will be invoked for the first asynchronous connect.
logger.Info("Connection to NATS restored ...")
}),
natsConnection, natsJetStream, err := NewJetStreamConnection(
natsURL,
connectionOptions,
nil, // nil jetstream options
)
if err != nil {
return nil, nil, err
}
Hmmm, something must have changed.
from k8s.
I don't now if that may be related with your problem, but the default storage type is, according to the documentation, the file one.
btw, the go client follow that :
const (
// FileStorage specifies on disk storage. It's the default.
FileStorage StorageType = iota
// MemoryStorage specifies in memory only.
MemoryStorage
)
I don't know how you manage your streams, but I guess you should explicitly set the memory storage type for them 🤷 .
from k8s.
@jeromedoucet . Thanks. Yes, looks like client now defaults to Filestorage.
It's interesting because previously clients did not need to specify it and nats would automatically handle things. So previously we had:
- Nats with jetstream memory enabled and filestore disabled
- clients did not have to specify any jetstream options.
After client update, jetstream is defaulting to filestore. This means that we either:
- enable filestore on jetstream and not update client code
- OR keep jetstream filestore disabled and update client code to specify the necessary option
I kinda prefer the old behaviour but I am sure there were reasons to move away from that.
Thanks.
from k8s.
Related Issues (20)
- NATS Helm Chart 1.x support for k8s Service Application Protocol
- [nats helm] Support config for `gateway.gateways` and `leafnodes.remotes`
- Add an option for priority Class HOT 1
- Is it possible to block anonymous access to nats cluster? HOT 5
- Deprecated apiVersions in dependencies HOT 1
- NATS helm setup example - error: nats: secure connection not available HOT 3
- How to configure auth via Secrets
- Allow annotation to be added to service via nats helm chart values.yaml HOT 1
- Prom-Exporter container failing : [ERR] Could not find server_id: invalid character 'C' looking for beginning of value HOT 5
- Nats installation on a fresh K8s cluster errors : no matches for kind "PodMonitor" HOT 1
- LB indefinitely stuck in Pending state , when using loadBalancerIP HOT 2
- helm charts v1.0.0 nukes image pull secrets HOT 6
- [nats helm] Global Image Pull Secrets
- Re-add nodeSelector to helm chart HOT 1
- NATS Chart Probes not Using HTTPS when Monitor TLS is Enabled HOT 1
- No way to pass nodeSelector or Pod affinity to nats helm chart HOT 1
- Templatize apiVersion and Kind of nats/pod-monitor for GKE compatibility HOT 1
- Upgrading from 0.x to 1.0 according to docs does not work HOT 1
- Prometheus discovery annotations not set on NATS (JetStream) deployment HOT 4
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 k8s.