Skip to content

alpha api old, alpha api issues

anandkumarpatel edited this page Jul 30, 2015 · 3 revisions

one of our servers is doing the funky dance, how do we get it to stop?

single service out of memory

do this when you see a service on the box is out of memory

  1. redeploy with ansible

box is out of memory

this is normally due to the docker deamon eating up all the memory. to fix:

  1. restart the docker deamon sudo service docker restart
  2. redeploy optimus and mavis
  3. ensure navi, charon, detention restarted, if not redeploy them as well
  4. need to relaunch weave sudo weave launch -password <FIND_FROM_SAURON_CONFIG>
  5. connect network to charon sudo weave attach 10.255.248.144/24 <CHARON_CONTAINER_ID>
  6. connect weave to peer sudo weave connect 10.0.1.10

out of disk

find out where most of the disk is getting used by using du the usual suspects are /var/log or /docker

/var/log

  1. clean up logs

/docker

  1. remove old containers ``sudo docker rm `docker ps -aq```
  2. if that does not free enough remove old images
  3. sudo docker images
  4. look for old tags or <none> and remove them with docker rmi <IMAGE_ID>
  5. look and disk of running containers du -d 1 -h /docker/aufs/diff/
  6. redeploy any which are using too much and remove old container
Clone this wiki locally