nats-io / nats-streaming-server

NATS Streaming System Server
https://nats.io
Apache License 2.0
2.51k stars 283 forks source link

Bootstrapping NATS cluster with microsoft service fabric #679

Open vramanx opened 5 years ago

vramanx commented 5 years ago

Microsoft service fabric provides a way to wrap any executable as a stateless service and instantiate it on all the servers.

https://github.com/Microsoft/service-fabric

Service Fabric is a cluster already. How can i use that to form a NATS cluster? Are there examples for this already?

wallyqs commented 5 years ago

Haven't found some examples for NATS and Service Fabric... Have you tried using Docker to run NATS on Azure Fabric? https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-docker-compose Although according to docs it is not recommended for production.

israellot commented 5 years ago

I am successfully running NATS on ServiceFabric cluster as a guest host, bootstrapping cluster configuration using SF's partition discovery. The trick was to set the environment variable NATS_DOCKERIZED and run the guest EXE with elevated permissions. I'll publish an example on a gist and report back here.

vramanx commented 5 years ago

Thanks @israellot !

Cant wait to get hands on your sample.

israellot commented 5 years ago

Take a look here @vramanx https://github.com/israellot/service-fabric-nats

vramanx commented 5 years ago

Thanks @israellot - will take a look!