This repository contains a docker-compose file which can be used to setup a demo of the M3 stack. It runs the following containers:
- M3DB
- M3Coordinator
- Prometheus
- Grafana
N=$(du -d 0 /var/lib/m3db | cut -f 1 -d $'\t'); echo "$N kb, all data" | |
N=0; for f in $(find /var/lib/m3db | fgrep "docdata.db"); do i=$(du $f | cut -f 1 -d $'\t'); N=$(expr $N + $i); done; echo "$N kb, index docdata" |
#!/bin/bash | |
set -euo pipefail | |
usage() { | |
echo "usage: $0 <repo> <name>" | |
echo | |
echo "<repo>" | |
echo " The repo link, e.g. https://github.com/m3db/m3coordinator.git" | |
echo |
module github.com/chronosphereio/enterprise | |
go 1.13 | |
require ( | |
github.com/RoaringBitmap/roaring v0.4.21 // indirect | |
github.com/apache/thrift/lib/go/thrift v0.0.0-00010101000000-000000000000 // indirect | |
github.com/apex/log v1.1.2 // indirect | |
github.com/axw/gocov v1.0.0 | |
github.com/bmizerany/perks v0.0.0-20141205001514-d9a9656a3a4b // indirect |
https://news.ycombinator.com/edit?id=20812002 |
#!/bin/bash | |
echo "Example usage: KV_ZONE=embedded KV_ENV=default_env COORD_HTTP_HOST=\"host1\" COORD_HTTP_PORT=\"7201\" HOSTS=\"host1 host2 host3\" ISOLATION_GROUP=\"group\" ./m3dbops-nodes-remove.sh" | |
if [ "$HOSTS" = "" ]; then | |
echo "must set HOSTS" | |
exit 1 | |
fi | |
if [ "$ISOLATION_GROUP" = "" ]; then |
#!/bin/bash | |
echo "Example usage: KV_ZONE=embedded KV_ENV=default_env COORD_HTTP_HOST=\"host1\" COORD_HTTP_PORT=\"7201\" HOSTS=\"host1 host2 host3\" ISOLATION_GROUP=\"group\" ./m3dbops-nodes-add.sh" | |
if [ "$HOSTS" = "" ]; then | |
echo "must set HOSTS" | |
exit 1 | |
fi | |
if [ "$ISOLATION_GROUP" = "" ]; then |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: coordinator | |
name: coordinator-dedicated | |
spec: | |
ports: | |
- name: coordinator |
// Copyright 2016 Prometheus Team | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, | |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |