Frontache & Docker - eternita/frontcache GitHub Wiki

Running Frontcache on Docker

  1. Install and Run Docker
  2. Go to FRONTCACHE_INSTALL_DIR/scripts/docker/frontcache-server
  3. Build an image with ./build.sh
  4. Start container with ./start_fc.sh
  5. Open http://localhost:9080/

Update it for your site

  1. Edit front-cache.origin-host in FRONTCACHE_INSTALL_DIR/scripts/docker/frontcache-server/dist/FRONTCACHE_HOME/conf/frontcache.properties
  2. Stop container with ./stop_fc.sh
  3. Build an image with ./build.sh
  4. Start container with ./start_fc.sh
  5. Open http://localhost:9080/

Getting Frontcache's logs into Kibana

Starting Kibana + Elasticsearch container

  1. Go to https://github.com/eternita/frontcache/tree/master/scripts/docker/fc-elk
  2. Run ./build.sh to build docker image
  3. Run ./start_elk.sh to start elasticsearch and kibana container

Starting Logstash container

  1. Go to https://github.com/eternita/frontcache/tree/master/scripts/docker/fc-logstash
  2. Run ./build.sh to build docker image
  3. Run ./start_logstash.sh to start logstash container

Getting logs from frontcache instances

  1. Add all instances with frontcache to your /.ssh/config ex.
Host fc1 fc1.mydomain.net
Hostname fc1.mydomain.net
User ubuntu
IdentityFile ~/Documents/keys/fc1_host.pem
  1. Add all instances into get_logs.sh like array=("fc2" "fc3" "fc4")
  2. Run ./get_logs.sh to download all frontcache logs and import it into Kibana

View statistic in Kibana

  1. Open http://localhost:5601/
  2. Import Kibana's dashboard https://github.com/eternita/frontcache/blob/master/scripts/docker/fc-elk/conf/kibana.json kibana