Last active
February 9, 2022 10:31
-
-
Save nekufa/a27b5a24d8a1e48f8c31bff2b03403fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get version | |
nekufa@fasiga ~ % kubectl describe pod nats-2 -n wfm-test | grep Image | |
Image: nats:2.7.2-alpine | |
Image ID: docker-pullable://nats@sha256:8b3fb2423a8cce4607ef30a990b35545afe0a3c613cd05b8eec7b483df268b1d | |
Image: natsio/nats-server-config-reloader:0.6.2 | |
Image ID: docker-pullable://natsio/nats-server-config-reloader@sha256:ad0374303b134b7d2d4a5a781107b426739df73fcf504c26c5ef15bc1c4ca10e | |
Image: natsio/prometheus-nats-exporter:0.9.0 | |
Image ID: docker-pullable://natsio/prometheus-nats-exporter@sha256:cbeecd2159da4705dcde1b834f8efb97b3acd7a1be6fc393fe0cd2644fc30b50 | |
# check disk usage for nats-2 instance | |
nekufa@fasiga ~ % kubectl exec -ti nats-2 -n wfm-test -c nats -- du -hs /data/jetstream/\$G | |
135.2M /data/jetstream/$G | |
nekufa@fasiga ~ % kubectl exec -ti nats-2 -n wfm-test -c nats -- du -h /data/jetstream/\$G | sort | head -n 3 | |
101.6M /data/jetstream/$G/streams/queue/msgs | |
101.7M /data/jetstream/$G/streams/queue | |
12.0K /data/jetstream/$G/streams/anomaly/msgs | |
# check message count for queue stream | |
nekufa@fasiga ~ % kubectl exec -ti nats-box-85c784bf49-kwl57 -n wfm-test -- nats stream info queue | |
Information for Stream queue created 2022-02-08T15:11:55Z | |
Configuration: | |
Subjects: queue | |
Acknowledgements: true | |
Retention: File - WorkQueue | |
Replicas: 1 | |
Discard Policy: New | |
Duplicate Window: 2m0s | |
Allows Msg Delete: true | |
Allows Purge: true | |
Allows Rollups: true | |
Maximum Messages: unlimited | |
Maximum Bytes: unlimited | |
Maximum Age: unlimited | |
Maximum Message Size: unlimited | |
Maximum Consumers: unlimited | |
Cluster Information: | |
Name: nats | |
Leader: nats-2 | |
State: | |
Messages: 0 | |
Bytes: 0 B | |
FirstSeq: 50,559 | |
LastSeq: 50,558 @ 2022-02-09T10:29:32 UTC | |
Active Consumers: 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment