-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using datacenter as zone #147
Merged
Merged
Conversation
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
Cluster topology:---
topology:
- name: router
replicasets_count: 2
failure_domains: [router-1-1, router-2-1]
roles:
- ttc.roles.router
- failover-coordinator
- name: storage
replicasets_count: 2
replication_factor: 2
failure_domains: [storage-1-1, storage-2-1]
roles:
- ttc.roles.storage
hosts:
- name: DC1
config:
http_port: 8081
binary_port: 3031
hosts:
- name: router-1-1
hosts:
- name: c1-rt1
config:
address: 192.168.137.3
- name: storage-1-1
hosts:
- name: c1-db1
config:
address: 192.168.137.4
- name: DC2
config:
http_port: 8081
binary_port: 3031
hosts:
- name: router-2-1
hosts:
- name: c2-rt1
config:
address: 192.168.137.13
- name: storage-2-1
hosts:
- name: c2-db1
config:
address: 192.168.137.14
failover:
mode: disabled
vars:
ansible_user: vagrant
ansible_password: vagrant
cartridge_app_name: app
cartridge_cluster_cookie: cookie
cartridge_package_path: "../app.tar.gz" Steps to reproduce:
Error:
|
…what level nesting `hosts` contains the required name `zone` For example, when configuring: ```yaml hosts: - name: region hosts: - name: datacenter hosts: - name: host ``` Team: ```shell genin build --fd-as-zone=2 ``` We get: ```yaml hosts: role: zone: datacenter config: ```
--- After each execution of the `genin build` command, the cluster state will be generated. By default, the state will be stored in the `.geninstate` directory. For all cluster changes, Genin is based on the "latest" state and after updating it overwrites it. ❗ Loss of `.geninstate` directory or `latest` state, `genin build` command recreates configuration with new state ❗ `genin build --recreate` recreates the configuration with a new state --- The `--fd-as-zone` option takes the value 1..255, which indicates at what level nesting `hosts` contains the required name `zone` For example, when configuring: ```yaml hosts: - name: region hosts: - name: datacenter hosts: - name: host ``` Team: ```shell genin build --fd-as-zone=2 ``` We get: ```yaml hosts: role: zone: datacenter config: ```
Kasen
approved these changes
Apr 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proof of concept