-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
632c54d
commit 6a91a99
Showing
11 changed files
with
226 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
topology: | ||
- name: router | ||
replicasets_count: <<replicasets_count>> # How many masters we want, by default equal 1 | ||
replication_factor: <<replication_factor>> # Number of replicas in replicaset, default 0 | ||
roles: [ router, failover-coordinator ] | ||
weight: <<weight>> # Vshard replicaset weight (matters only if `vshard-storage` role is enabled) | ||
cartridge_extra_env: # Environment variables for instance service (systemd service) | ||
REMOTE_SERVER: db1.pg.svc.cluster.local | ||
REMOTE_USER: user | ||
REMOTE_PASSWORD: password | ||
config: # Config with arbitrary key-values pairs | ||
http_port: <<http_start_port>> # Specify http port to start counting from | ||
binary_port: <<binary_start_port>> # Specify binary port to start counting from | ||
all_rw: false # A flag indicating that all servers in the replicaset should be read-write | ||
zone: server-1 # Zone parameter for ansible cartridge playbook | ||
vshard_group: # Vshard group for vshard-storage | ||
additional_config: # Additional parameters to be added to the host config | ||
server_url: foo.bar.baz | ||
vars: # Ansible wars to be added to hosts | ||
ansible_user: user | ||
ansible_password: password | ||
- name: storage | ||
replicasets_count: <<replicasets_count>> # How many masters we want, by default equal 1 | ||
replication_factor: <<replication_factor>> # Number of replicas in replicaset, default 0 | ||
roles: [ storage ] | ||
hosts: | ||
- name: datacenter-1 | ||
config: | ||
http_port: <<http_start_port>> # Specify http port to start counting from | ||
binary_port: <<binary_start_port>> # Specify binary port to start counting from | ||
hosts: | ||
- name: server-1 | ||
config: | ||
http_port: <<http_start_port>> # Specify http port to start counting from | ||
binary_port: <<binary_start_port>> # Specify binary port to start counting from | ||
address: <<host_address>> # Host or instance address (maybe IP or URI) | ||
- name: server-2 | ||
config: | ||
address: <<host_address>> # Host or instance address (maybe IP or URI) | ||
failover: | ||
mode: stateful # Failover mode (stateful, eventual, disabled) | ||
state_provider: stateboard # What is serve failover (stateboard, stateful) | ||
stateboard_params: | ||
uri: <<host_address_and_port>> # Uri on which the stateboard will be available (ip:port) | ||
password: <<stateboard_password>> # Stateboard password | ||
vars: | ||
ansible_user: <<ansible_user>> # Username under which the ansible will connect to the servers | ||
ansible_password: <<ansible_password>> # Ansible's user password | ||
cartridge_app_name: <<application_name>> | ||
cartridge_cluster_cookie: <<cookie>> # Cookie for connecting to the administrative console of the instances | ||
cartridge_package_path: <<absolute_path>> # Path to the application package | ||
cartridge_bootstrap_vshard: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
topology: | ||
- name: router | ||
replicasets_count: 1 | ||
roles: [ router, failover-coordinator ] | ||
failure_domains: [ server-2 ] # In this case, all router instances will be distributed to server-2 | ||
- name: storage | ||
replicasets_count: 2 | ||
replication_factor: 2 | ||
roles: [ storage ] | ||
- name: cache | ||
replicasets_count: 3 | ||
roles: [ cache ] | ||
failure_domains: [ server-1 ] # In this case, all 3 instances will be distributed to server-1 | ||
hosts: | ||
- name: datacenter-1 | ||
config: | ||
http_port: <<http_start_port>> # Specify http port to start counting from | ||
binary_port: <<binary_start_port>> # Specify binary port to start counting from | ||
hosts: | ||
- name: server-1 | ||
config: | ||
address: <<host_address>> # Host or instance address (maybe IP or URI) | ||
- name: server-2 | ||
config: | ||
address: <<host_address>> # Host or instance address (maybe IP or URI) | ||
failover: | ||
mode: stateful # Failover mode (stateful, eventual, disabled) | ||
state_provider: stateboard # What is serve failover (stateboard, stateful) | ||
stateboard_params: | ||
uri: <<host_address_and_port>> # Uri on which the stateboard will be available (ip:port) | ||
password: <<stateboard_password>> # Stateboard password | ||
vars: | ||
ansible_user: <<ansible_user>> # Username under which the ansible will connect to the servers | ||
ansible_password: <<ansible_password>> # Ansible's user password | ||
cartridge_app_name: <<application_name>> | ||
cartridge_cluster_cookie: <<cookie>> # Cookie for connecting to the administrative console of the instances | ||
cartridge_package_path: <<absolute_path>> # Path to the application package | ||
cartridge_bootstrap_vshard: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
instances: | ||
- name: logger | ||
type: custom | ||
replicasets_count: 1 | ||
replication_factor: 0 | ||
weight: 10 | ||
roles: | ||
- logger | ||
- notifier | ||
- name: runner | ||
type: custom | ||
replicasets_count: 2 | ||
replication_factor: 0 | ||
weight: 10 | ||
roles: | ||
- output_processor | ||
- task_runner | ||
- name: processor | ||
type: custom | ||
replicasets_count: 2 | ||
replication_factor: 0 | ||
weight: 10 | ||
roles: | ||
- connector | ||
- input_processor | ||
- failover-coordinator | ||
- name: scheduler | ||
type: custom | ||
replicasets_count: 1 | ||
replication_factor: 0 | ||
weight: 10 | ||
roles: | ||
- scheduler | ||
- name: storage | ||
type: storage | ||
replicasets_count: 1 | ||
replication_factor: 2 | ||
weight: 10 | ||
roles: | ||
- storage | ||
hosts: | ||
- name: vagrant | ||
type: datacenter | ||
ports: | ||
http: 8081 | ||
binary: 3031 | ||
hosts: | ||
- name: tdg-1 | ||
ip: 192.168.1.2 | ||
- name: tdg-2 | ||
ip: 192.168.1.3 | ||
- name: tdg-3 | ||
ip: 192.168.1.4 | ||
failover: | ||
mode: stateful | ||
state_provider: etcd2 | ||
etcd2_params: | ||
prefix: cartridge/tdg | ||
lock_delay: 30 | ||
endpoints: | ||
- "http://192.168.1.2:2379" | ||
vars: | ||
ansible_user: vagrant | ||
ansible_password: vagrant | ||
cartridge_app_name: tdg | ||
cartridge_cluster_cookie: myapp-cookie | ||
cartridge_package_path: ./tdg-1.7.17.rpm |
Oops, something went wrong.