Skip to content

[Config] Update the 'Starting and stopping instances' guide to using a new config #3791

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

Closed
Tracked by #3544
andreyaksenov opened this issue Oct 25, 2023 · 1 comment · Fixed by #3928
Closed
Tracked by #3544
Assignees

Comments

@andreyaksenov
Copy link
Contributor

andreyaksenov commented Oct 25, 2023

Related docs. issue(s): #3847

Product: Tarantool
Since: 3.0
Root document: https://www.tarantool.io/en/doc/latest/book/admin/start_stop_instance/
SME: @ Totktonada

Example

tt configuration structure:

└── instances.enabled
    └── app
        ├── config.yaml
        └── instances.yml

config.yaml:

credentials:
  users:
    replicator:
      password: 'topsecret'
      roles: [replication]
    client:
      password: 'secret'
      roles: [super]

iproto:
  advertise:
    peer: replicator@

replication:
  failover: election

groups:
  group-001:
    replicasets:
      replicaset-001:
        instances:
          instance-001:
            iproto:
              listen: 127.0.0.1:3301
          instance-002:
            iproto:
              listen: 127.0.0.1:3302
          instance-003:
            iproto:
              listen: 127.0.0.1:3303

instances.yaml:

app.instance-001:

app.instance-002:

app.instance-003:

Run app:

tt start app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant