Dan
Dan

Reputation: 1942

Keep Cassandra running on EC2 after shell timeouts

I can ssh into my amazon EC2 instance and start Cassandra fine. I'll leave the shell up on my dev machine while I make connections from a server. Later the connection breaks and I'll check the shell-- it has timed out and I suppose has terminated the Cassandra process on its way out.

How I launch cassandra from shell:

$  nohup bin/cassandra -f &

The EC2 instance will be used for production months down the road so I'd like the Cassandra process to be up after I launch it and not go down.

Any advice would be helpful. Thanks.

Upvotes: 0

Views: 68

Answers (1)

psanford
psanford

Reputation: 5670

You should run Cassandra the same way you would run any other daemon, from your init system (e.g. Systemd or Upstart). If you install Cassandra from the official .deb or .rpm package, it will install the appropriate config file for your init system.

Upvotes: 1

Related Questions