-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/allow replica of 1 for Jetstream (#2822)
Signed-off-by: jmillage <[email protected]> Co-authored-by: jmillage <[email protected]>
- Loading branch information
Showing
7 changed files
with
56 additions
and
37 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
controllers/eventbus/installer/assets/jetstream/nats-cluster.conf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
max_payload: {{.MaxPayloadSize}} | ||
port: {{.ClientPort}} | ||
pid_file: "/var/run/nats/nats.pid" | ||
############### | ||
# # | ||
# Monitoring # | ||
# # | ||
############### | ||
http: {{.MonitorPort}} | ||
server_name: $POD_NAME | ||
################################### | ||
# # | ||
# NATS JetStream # | ||
# # | ||
################################### | ||
jetstream { | ||
key: $JS_KEY | ||
store_dir: "/data/jetstream/store" | ||
{{.Settings}} | ||
} | ||
|
||
################################### | ||
# # | ||
# NATS Cluster # | ||
# # | ||
################################### | ||
cluster { | ||
port: {{.ClusterPort}} | ||
name: {{.ClusterName}} | ||
routes: [{{.Routes}}] | ||
cluster_advertise: $CLUSTER_ADVERTISE | ||
connect_retries: 120 | ||
|
||
tls { | ||
cert_file: "/etc/nats-config/cluster-server-cert.pem" | ||
key_file: "/etc/nats-config/cluster-server-key.pem" | ||
ca_file: "/etc/nats-config/cluster-ca-cert.pem" | ||
} | ||
} | ||
|
||
lame_duck_duration: 120s | ||
################## | ||
# # | ||
# Authorization # | ||
# # | ||
################## | ||
include ./auth.conf |
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
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
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
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
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
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