|
Thank you for the reply in #68. I found out that I can still use marmot with external nats-server, which is great.
|
Replies: 3 comments 2 replies
No, this is main intention of Marmot.
No, I've resisted this idea for long time, my ultimate conclusion was that not everyone wants to deploy 2 different binaries/sidecars. I intended to make getting up and running really quick and easy. People can obviously add their own NATS instances as part of cluster. At the end of day it makes life easier than difficult for people |
|
OK. I understand you want to make life easier. That is awesome.| Can I start marmot with 1 binary runing jetstream and the other one connected to it without requiring RAFT consensus? Something like: In this configuration for node-2-config.toml I would specify the nats address localhost:4222. It crashes with : So there is some configuration to pass here. |
|
Nice! That works. First node: embeded nats configuration: Second node configuration: Running 1st node like this: And the 2nd node: And this works like a charm. Thank you for your patience and continued work on this project! |
You can run Marmot single node with
./marmot -config node-1-config.tomldon't specify cluster address. The moment you specify cluster address it tries to build a cluster. This will launch marmot with embedded nats if the nats.urls in config file is empty, otherwise just embedded NATS with jetstream. I would suggest for your setup that you are describing bring up a single NATS server with JS and just put localhost:4222 like so in config for both.