nack icon indicating copy to clipboard operation
nack copied to clipboard

jetstream.yml - [ is not respecting the storage value on the helm chart ]

Open randomk opened this issue 3 years ago • 2 comments

Hey Folks,

When I create a stream-product for nats on kubernetes it is not respecting the file parameter in helm chart.

follow my deployment. https://gist.github.com/randomk/6456ef3db59127765697607db06ea488


apiVersion: jetstream.nats.io/v1beta1 kind: Stream metadata: name: product spec: name: product subjects: ["product.*"] storage: file maxAge: 1h replicas: 3 noAck: true maxMsgs: -1 maxBytes: -1 retention: limits discard: old maxMsgSize: -1

I am checking via nats-toolbox and its not showing correct, showing as a memory stream

fun-fact when I create a stream via the nats-toolbox it creates correct as a file. nats str add ORDERS --subjects "ORDERS.*" --ack --max-msgs=-1 --max-bytes=-1 --max-age=1y --storage file --retention limits --max-msg-size=-1 --discard=old

randomk avatar May 08 '21 02:05 randomk

when I run the command nats str report the storage is returning as memory and with that the data is not being persisted to disk

randomk avatar May 08 '21 03:05 randomk

@randomk have you identified what seems to be the issue here? Thank you

larssb avatar May 27 '21 09:05 larssb