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-host
inFRONTCACHE_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.sh
to build docker image - Run
./start_elk.sh
to start elasticsearch and kibana container
Starting Logstash container
- Go to https://github.com/eternita/frontcache/tree/master/scripts/docker/fc-logstash
- Run
./build.sh
to build docker image - Run
./start_logstash.sh
to start logstash container
Getting logs from frontcache instances
- 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
- Add all instances into
get_logs.sh
likearray=("fc2" "fc3" "fc4")
- Run
./get_logs.sh
to 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