mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
No more error messages on deploying new celery/gunicorn. Also adding NUMA cancellation support to mongo db server.
This commit is contained in:
parent
b7b0243356
commit
223bd26721
3 changed files with 19 additions and 3 deletions
2
fabfile.py
vendored
2
fabfile.py
vendored
|
@ -694,7 +694,7 @@ def setup_mongo():
|
|||
# sudo('echo "deb http://downloads.mongodb.org/distros/ubuntu 10.10 10gen" >> /etc/apt/sources.list.d/10gen.list')
|
||||
sudo('echo "deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen" >> /etc/apt/sources.list')
|
||||
sudo('apt-get update')
|
||||
sudo('apt-get -y install mongodb-10gen')
|
||||
sudo('apt-get -y install mongodb-10gen numactl')
|
||||
put('config/mongodb.%s.conf' % ('prod' if env.user != 'ubuntu' else 'ec2'),
|
||||
'/etc/mongodb.conf', use_sudo=True)
|
||||
sudo('/etc/init.d/mongodb restart')
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
ps aux | grep celery | egrep -v grep | awk '{print $2}' | xargs kill -9
|
||||
for i in `ps -o pid,command ax | grep celery | awk '!/awk/ && !/grep/ {print $1}'`
|
||||
do
|
||||
if [ "${i}" != "" ]; then
|
||||
print "Killing: ${i}";
|
||||
kill -9 ${i};
|
||||
fi
|
||||
done
|
||||
|
||||
# ps aux | grep celery | egrep -v grep | awk '{print $2}' | xargs kill -9
|
|
@ -1,3 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
ps aux | grep gunicorn | egrep -v grep | awk '{print $2}' | xargs kill -9
|
||||
for i in `ps -o pid,command ax | grep gunicorn | awk '!/awk/ && !/grep/ {print $1}'`
|
||||
do
|
||||
if [ "${i}" != "" ]; then
|
||||
print "Killing: ${i}";
|
||||
kill -9 ${i};
|
||||
fi
|
||||
done
|
||||
|
||||
# ps aux | grep gunicorn | egrep -v grep | awk '{print $2}' | xargs kill -9
|
Loading…
Add table
Reference in a new issue