Re: supervisord and cassandra

2014-03-14 Thread Robert Coli
FWIW, if you are using something like supervisor to ensure that cassandra auto-starts if it crashes, you should be aware that there are good reasons to not do that. https://issues.apache.org/jira/browse/CASSANDRA-2356 Discusses some of the cases, but it basically sums to "starting a distributed s

Re: supervisord and cassandra

2014-02-14 Thread David Montgomery
I had to give up on supervisor. I installed the deb package rather than from source. that worked though. thanks On Sat, Feb 15, 2014 at 10:10 AM, Michael Shuler wrote: > On 02/14/2014 07:34 PM, Michael Shuler wrote: > >> On 02/14/2014 06:58 PM, David Montgomery wrote: >> >>> Hi, >>> >>> Using

Re: supervisord and cassandra

2014-02-14 Thread Michael Shuler
So.. see the rest of my replies for a working configuration, but I wanted to reply to your initial post. What problem are you trying to solve, and why do you think using supervisord to restart a failed c* node will help? You really don't want a node to be bouncing up and down.. A dead or di

Re: supervisord and cassandra

2014-02-14 Thread Michael Shuler
On 02/14/2014 08:32 PM, Michael Shuler wrote: On 02/14/2014 08:27 PM, Michael Shuler wrote: On 02/14/2014 08:10 PM, Michael Shuler wrote: mshuler@debian:~$ sudo supervisorctl status cassandra_server:cassandra FATAL Exited too quickly (process log may have details) I imagine the pro

Re: supervisord and cassandra

2014-02-14 Thread Michael Shuler
On 02/14/2014 08:27 PM, Michael Shuler wrote: On 02/14/2014 08:10 PM, Michael Shuler wrote: mshuler@debian:~$ sudo supervisorctl status cassandra_server:cassandra FATAL Exited too quickly (process log may have details) I imagine the problems all stem from the fact that the initializ

Re: supervisord and cassandra

2014-02-14 Thread Michael Shuler
On 02/14/2014 08:10 PM, Michael Shuler wrote: mshuler@debian:~$ sudo supervisorctl status cassandra_server:cassandra FATAL Exited too quickly (process log may have details) I imagine the problems all stem from the fact that the initializing script, in my case, /opt/cassandra/bin/ca

Re: supervisord and cassandra

2014-02-14 Thread Michael Shuler
On 02/14/2014 08:10 PM, Michael Shuler wrote: Attached a console log and the conf I used. Here's what I did: - installed c* 2.0.5 with /var/{lib,log}/cassandra owned by my user, as usual - verified c* runs fine from the command line - killed c* - installed supervisor package and added the attac

Re: supervisord and cassandra

2014-02-14 Thread Michael Shuler
On 02/14/2014 07:34 PM, Michael Shuler wrote: On 02/14/2014 06:58 PM, David Montgomery wrote: Hi, Using now oracle 7. commented out the line StringTableSize=103 same issue. but nothing in the log file now. but I start from, the command line the works. What user are you running c* with,

Re: supervisord and cassandra

2014-02-14 Thread Michael Shuler
On 02/14/2014 06:58 PM, David Montgomery wrote: Hi, Using now oracle 7. commented out the line StringTableSize=103 same issue. but nothing in the log file now. but I start from, the command line the works. What user are you running c* with, when running from the command line? What user

Re: supervisord and cassandra

2014-02-14 Thread David Montgomery
Hi, Using now oracle 7. commented out the line StringTableSize=103 same issue. but nothing in the log file now. but I start from, the command line the works. Thanks On Fri, Feb 14, 2014 at 9:48 AM, Michael Shuler wrote: > On 02/13/2014 07:03 PM, David Montgomery wrote: > >> I only

Re: supervisord and cassandra

2014-02-13 Thread Tristan Seligmann
On 14 February 2014 03:03, David Montgomery wrote: > I only added the -f flag after the first time it did not work. If I dont > use the -f flag. > > cassandra_server:cassandra FATAL Exited too quickly (process log > may have details) Whoops, I got mixed up; the -f param to Cassand

Re: supervisord and cassandra

2014-02-13 Thread Michael Shuler
On 02/13/2014 07:03 PM, David Montgomery wrote: I only added the -f flag after the first time it did not work. If I dont use the -f flag. cassandra_server:cassandra FATAL Exited too quickly (process log may have details) From your original message: > Unrecognized VM option 'St

Re: supervisord and cassandra

2014-02-13 Thread David Montgomery
Hi, I only added the -f flag after the first time it did not work. If I dont use the -f flag. cassandra_server:cassandra FATAL Exited too quickly (process log may have details) On Thu, Feb 13, 2014 at 11:25 PM, Tristan Seligmann wrote: > On 13 February 2014 11:39, David Montg

Re: supervisord and cassandra

2014-02-13 Thread Tristan Seligmann
On 13 February 2014 11:39, David Montgomery wrote: > [program:cassandra] > command = /var/apache-cassandra-<%=@version%>/bin/cassandra -f I'm not familiar with supervisor specifically, but most process supervisors want the supervised process not to fork; that is, remove the -f from the command he

Re: supervisord and cassandra

2014-02-13 Thread David Montgomery
Thanks, do you have a sample of the defaults? I just dont understand why from the command line it works but not from supervisor thanks [include] files = *.supervisor [supervisord] pidfile = /var/run/supervisord.pid nodaemon=false [supervisorctl] serverurl=unix:///var/run/supervisord.sock ;

Re: supervisord and cassandra

2014-02-13 Thread Robert S
Hi David, We've had no problems running C* with supervisor, and your conf.d file is broadly similar to ours. I don't think those errors are anything to do with supervisor. We did however have issues starting C* with the recommended resource limits

supervisord and cassandra

2014-02-13 Thread David Montgomery
omg..wow...can cassandra run under supervisor? this works from the command line as root /var/apache-cassandra-<%=@version%>/bin/cassandra -f this does not work. why? [program:cassandra] command = /var/apache-cassandra-<%=@version%>/bin/cassandra -f #environment=JVM_EXTRA_OPTS="-Dcom.sun.manage