https://github.com/grzkv/graphite-cluster-docker
Setup local graphite cluster instantly
https://github.com/grzkv/graphite-cluster-docker
distributed-systems docker-compose graphite
Last synced: 3 months ago
JSON representation
Setup local graphite cluster instantly
- Host: GitHub
- URL: https://github.com/grzkv/graphite-cluster-docker
- Owner: grzkv
- License: mit
- Created: 2018-06-27T15:21:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-29T14:32:43.000Z (about 8 years ago)
- Last Synced: 2025-03-22T21:16:01.277Z (over 1 year ago)
- Topics: distributed-systems, docker-compose, graphite
- Language: Shell
- Homepage:
- Size: 3.66 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quick graphite cluster setup on local machine
The main use case is testing of distributed operations on graphite files.
## How to use
1. (optional) Replace the `bucky` and `buckyd` execs in the root directory with the desired version.
2. Run `docker-compose build`. This will include the executables into the Docker containers, and will build the containers themselves.
3. Run `docker-compose up -d`. This will start the cluster
Examine cluster with `docker ps`
Connect to separate instances with `docker exec -it graphite-cluster-docker_host{1,2,3}_1 /bin/bash`
## Cluster structure
The cluster runs three instances each running *go-carbon*, *Grafana*, *carbon-api*, and *buckyd*. They constitute a cluster managed by *buckyd*. Instances also have *bucky* installed.
Mapping of the services to `localhost` ports:
| service/node | host1 | host2 | host3 |
|---|---|---|---|
|Grafana | localhost:81 | localhost:82 | localhost:83 |
|Graphite line interface | localhost:2103 | localhost:2203 | localhost:2303 |
The folders `storage{1,2,3}` map to the graphite storage in `host{1,2,3}`. One can examine the contest of the graphite storages there.