Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2019-08-02 18:58:13 +0300
committerJohn Cai <jcai@gitlab.com>2019-08-02 20:50:15 +0300
commit38142319c6eeac0e60f5cfe016cefd6ab9adb595 (patch)
tree31d8dd526230cc0e4b25637b2d21f396d9c1a50d
parented1e85f31caa3456458ad1cc2ca90e8de9f6f51d (diff)
-rw-r--r--.gitignore1
-rw-r--r--_support/praefect-cluster/.gitignore3
-rw-r--r--_support/praefect-cluster/README.md8
-rw-r--r--_support/praefect-cluster/config.gitaly.toml49
-rw-r--r--_support/praefect-cluster/config.praefect.toml45
-rw-r--r--_support/praefect-cluster/docker-compose.yml52
6 files changed, 0 insertions, 158 deletions
diff --git a/.gitignore b/.gitignore
index 9fb2c7e44..b7fbb0b4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,7 +21,6 @@ cmd/gitaly-remote/gitaly-remote
git-env
/gitaly-debug
/praefect
-/praefect-migrate
gitaly.pid
/vendor/github.com/libgit2/git2go/vendor
/vendor
diff --git a/_support/praefect-cluster/.gitignore b/_support/praefect-cluster/.gitignore
deleted file mode 100644
index bd035c2b7..000000000
--- a/_support/praefect-cluster/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-/gitaly-1
-/gitaly-2
-/gitaly-3
diff --git a/_support/praefect-cluster/README.md b/_support/praefect-cluster/README.md
deleted file mode 100644
index cab4614b6..000000000
--- a/_support/praefect-cluster/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# Test cluster with Praefect and multiple Gitaly servers
-
-This directory contains a
-[docker-compose.yml](https://docs.docker.com/compose/) that has Praefect and 3 Gitaly servers
-behind it. This setup is meant for testing purposes only and SHOULD NOT be used
-in production environments.
-
-Boot the cluster with `docker-compose up`. After some time you can connect to praefect on port 2305
diff --git a/_support/praefect-cluster/config.gitaly.toml b/_support/praefect-cluster/config.gitaly.toml
deleted file mode 100644
index 2379b6951..000000000
--- a/_support/praefect-cluster/config.gitaly.toml
+++ /dev/null
@@ -1,49 +0,0 @@
-# Example Gitaly configuration file
-
-# The directory where Gitaly's executables are stored
-bin_dir = "/usr/local/bin"
-
-# listen on a TCP socket. This is insecure (no authentication)
-listen_addr = "0.0.0.0:9999"
-
-# # Optional: export metrics via Prometheus
-# prometheus_listen_addr = "localhost:9236"
-#
-
-# # Git executable settings
-# [git]
-# bin_path = "/usr/bin/git"
-
-[[storage]]
-name = "default"
-path = "/home/git/repositories"
-
-# # You can optionally configure more storages for this Gitaly instance to serve up
-#
-# [[storage]]
-# name = "other_storage"
-# path = "/mnt/other_storage/repositories"
-#
-
-# # You can optionally configure Gitaly to output JSON-formatted log messages to stdout
-# [logging]
-# format = "json"
-# # Additionally exceptions can be reported to Sentry
-# sentry_dsn = "https://<key>:<secret>@sentry.io/<project>"
-
-# # You can optionally configure Gitaly to record histogram latencies on GRPC method calls
-# [prometheus]
-# grpc_latency_buckets = [0.001, 0.005, 0.025, 0.1, 0.5, 1.0, 10.0, 30.0, 60.0, 300.0, 1500.0]
-
-[gitaly-ruby]
-# The directory where gitaly-ruby is installed
-dir = "/srv/gitaly-ruby"
-
-[gitlab-shell]
-# The directory where gitlab-shell is installed
-dir = "/srv/gitlab-shell"
-
-# # You can adjust the concurrency of each RPC endpoint
-# [[concurrency]]
-# rpc = "/gitaly.RepositoryService/GarbageCollect"
-# max_per_repo = 1
diff --git a/_support/praefect-cluster/config.praefect.toml b/_support/praefect-cluster/config.praefect.toml
deleted file mode 100644
index 2a4297248..000000000
--- a/_support/praefect-cluster/config.praefect.toml
+++ /dev/null
@@ -1,45 +0,0 @@
-# Example Praefect configuration file
-
-# # TCP address to listen on
-listen_addr = ":2305"
-
-# # Praefect can listen on a socket when placed on the same machine as all clients
- #socket_path = "/etc/gitaly/praefect/socket"
-# # Praefect will only replicate whitelisted repositories
-whitelist = ["@hashed/2c/62/2c624232cdd221771294dfbb310aca000a0df6ac8b66b696d90ef06fdefb64a3.git"]
-# # Optional: export metrics via Prometheus
-# prometheus_listen_addr = "127.0.01:10101"
-
-# # You can optionally configure Praefect to output JSON-formatted log messages to stdout
-[logging]
-# format = "json"
- level = "info"
-# # Optional: Set log level to only log entries with that severity or above
-# # One of, in order: debug, info, warn, errror, fatal, panic
-# # Defaults to "info"
-# level = "warn"
-
-# # One or more Gitaly servers need to be configured to be managed. The names
-# of each server are used to link multiple nodes, or `gitaly_server`s together
-# as shard. listen_addr should be unique for all nodes.
-# Requires the protocol to be defined, e.g. tcp://host.tld:1234
-
-[[storage_node]]
-# listen_addr = "tcp://gitaly-primary:9999"
- storage = "praefect-internal-1"
- address = "tcp://127.0.0.1:9999"
-
-[[storage_node]]
-# listen_addr = "tcp://gitaly-backup-1:9999"
- storage = "praefect-internal-2"
- address = "tcp://127.0.0.1:9998"
-
-[[storage_node]]
-# listen_addr = "tcp://gitaly-backup-2:9999"
- storage = "praefect-internal-3"
- address = "tcp://127.0.0.1:9997"
-
-[postgres]
- user = "johncai"
- address = "127.0.0.1:5432"
- database = "praefect_test" \ No newline at end of file
diff --git a/_support/praefect-cluster/docker-compose.yml b/_support/praefect-cluster/docker-compose.yml
deleted file mode 100644
index 09745ea41..000000000
--- a/_support/praefect-cluster/docker-compose.yml
+++ /dev/null
@@ -1,52 +0,0 @@
-version: "3.5"
-services:
-# praefect:
-# build:
-# context: ../../
-# dockerfile: Dockerfile.praefect
-# image: praefect:latest
-# depends_on:
-# - gitaly-1
-# - gitaly-2
-# - gitaly-3
-# command: ["/etc/gitaly/praefect", "-config", "/etc/gitaly/config.praefect.toml"]
-# ports:
-# - "2305:2305"
-# volumes:
-# - ./config.praefect.toml:/etc/gitaly/config.praefect.toml
- gitaly-1:
- image: registry.gitlab.com/gitlab-org/build/cng/gitaly:latest
- environment:
- - GITALY_TESTING_NO_GIT_HOOKS=1
- expose:
- - "9999"
- ports:
- - "9999:9999"
- command: ["/usr/local/bin/gitaly", "/etc/config/config.toml"]
- volumes:
- - ./gitaly-1/data:/home/git/repositories
- - ./config.gitaly.toml:/etc/config/config.toml
- gitaly-2:
- image: registry.gitlab.com/gitlab-org/build/cng/gitaly:latest
- environment:
- - GITALY_TESTING_NO_GIT_HOOKS=1
- expose:
- - "9999"
- ports:
- - "9998:9999"
- command: ["/usr/local/bin/gitaly", "/etc/config/config.toml"]
- volumes:
- - ./gitaly-2/data:/home/git/repositories
- - ./config.gitaly.toml:/etc/config/config.toml
- gitaly-3:
- image: registry.gitlab.com/gitlab-org/build/cng/gitaly:latest
- environment:
- - GITALY_TESTING_NO_GIT_HOOKS=1
- expose:
- - "9999"
- ports:
- - "9997:9999"
- command: ["/usr/local/bin/gitaly", "/etc/config/config.toml"]
- volumes:
- - ./gitaly-3/data:/home/git/repositories
- - ./config.gitaly.toml:/etc/config/config.toml \ No newline at end of file