Frontache & Docker - eternita/frontcache GitHub Wiki
Running Frontcache on Docker
- Install and Run Docker
- Go to FRONTCACHE_INSTALL_DIR/scripts/docker/frontcache-server
- Build an image with
./build.sh - Start container with
./start_fc.sh - Open http://localhost:9080/
Update it for your site
- Edit
front-cache.origin-hostinFRONTCACHE_INSTALL_DIR/scripts/docker/frontcache-server/dist/FRONTCACHE_HOME/conf/frontcache.properties - Stop container with
./stop_fc.sh - Build an image with
./build.sh - Start container with
./start_fc.sh - Open http://localhost:9080/
Getting Frontcache's logs into Kibana
Starting Kibana + Elasticsearch container
- Go to https://github.com/eternita/frontcache/tree/master/scripts/docker/fc-elk
- Run
./build.shto build docker image - Run
./start_elk.shto start elasticsearch and kibana container
Starting Logstash container
- Go to https://github.com/eternita/frontcache/tree/master/scripts/docker/fc-logstash
- Run
./build.shto build docker image - Run
./start_logstash.shto start logstash container
Getting logs from frontcache instances
- Add all instances with frontcache to your
/.ssh/configex.
Host fc1 fc1.mydomain.net
Hostname fc1.mydomain.net
User ubuntu
IdentityFile ~/Documents/keys/fc1_host.pem
- Add all instances into
get_logs.shlikearray=("fc2" "fc3" "fc4") - Run
./get_logs.shto download all frontcache logs and import it into Kibana
View statistic in Kibana
- Open
http://localhost:5601/ - Import Kibana's dashboard https://github.com/eternita/frontcache/blob/master/scripts/docker/fc-elk/conf/kibana.json
