Skip to content

create: add template for non-vshard cluster #1183

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

Merged
merged 1 commit into from
Jul 22, 2025

Conversation

elhimov
Copy link
Contributor

@elhimov elhimov commented Jul 8, 2025

Configurable parameters:

  • Number of replicasets
  • Number of replicas per replicaset
  • User name
  • Password
Example of generated config

Number of replicasets: 2
Number of replicas per replicaset: 3
User: me
Password: bla-BLA-bla

instances.yaml

---
replicaset-001-a:
replicaset-001-b:
replicaset-001-c:
replicaset-002-a:
replicaset-002-b:
replicaset-002-c:

config.yaml

credentials:
  users:
    me:
      password: 'bla-BLA-bla'
      roles: [super]
    replicator:
      password: 'topsecret'
      roles: [replication]

iproto:
  advertise:
    peer:
      login: replicator

replication:
  failover: manual

groups:
  group-001:
    app:
      file: 'app.lua'
    replicasets:
      replicaset-001:
        leader: replicaset-001-a
        instances:
          replicaset-001-a:
            iproto:
              listen:
              - uri: 127.0.0.1:3301
          replicaset-001-b:
            iproto:
              listen:
              - uri: 127.0.0.1:3302
          replicaset-001-c:
            iproto:
              listen:
              - uri: 127.0.0.1:3303
      replicaset-002:
        leader: replicaset-002-a
        instances:
          replicaset-002-a:
            iproto:
              listen:
              - uri: 127.0.0.1:3304
          replicaset-002-b:
            iproto:
              listen:
              - uri: 127.0.0.1:3305
          replicaset-002-c:
            iproto:
              listen:
              - uri: 127.0.0.1:3306

I didn't forget about:

  • Well-written commit messages (see documentation how to write a commit message)
  • Don't forget about TarantoolBot in a commit message (see example)
  • Tests (see documentation for a testing package)
  • Changelog (see documentation for changelog format)

Related issues:

Closes #1182

@oleg-jukovec
Copy link
Contributor

Please, add an example of execution of the command (into PR and commit messages) and generated config (into PR message).

@elhimov elhimov force-pushed the elhimov/gh-1182-add-non-vshard-cluster-template branch from f5f1ab5 to a97e753 Compare July 15, 2025 08:43
@elhimov elhimov marked this pull request as ready for review July 15, 2025 08:43
@elhimov elhimov added the full-ci Enables full ci tests label Jul 15, 2025
@elhimov elhimov force-pushed the elhimov/gh-1182-add-non-vshard-cluster-template branch from a97e753 to 4d3a6f9 Compare July 15, 2025 10:00
@elhimov elhimov requested review from oleg-jukovec and dmyger and removed request for oleg-jukovec July 15, 2025 10:02
Copy link
Contributor

@oleg-jukovec oleg-jukovec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, rebase on the master branch.

@elhimov elhimov force-pushed the elhimov/gh-1182-add-non-vshard-cluster-template branch 2 times, most recently from e31d199 to 451024b Compare July 15, 2025 11:40
@elhimov
Copy link
Contributor Author

elhimov commented Jul 15, 2025

Please, add an example of execution of the command (into PR and commit messages) and generated config (into PR message).
Done.

@elhimov
Copy link
Contributor Author

elhimov commented Jul 15, 2025

Please, rebase on the master branch.

Done.

@elhimov elhimov force-pushed the elhimov/gh-1182-add-non-vshard-cluster-template branch from 451024b to a20e277 Compare July 16, 2025 09:49
@elhimov elhimov force-pushed the elhimov/gh-1182-add-non-vshard-cluster-template branch 8 times, most recently from 71b2321 to 69f7f26 Compare July 21, 2025 20:58
Closes #1182

@TarantoolBot document
Title: `tt create` add template for non-vshard cluster.

Configurable parameters:
- Number of replicasets
- Number of replicas per replicaset
- User name
- Password
@elhimov elhimov force-pushed the elhimov/gh-1182-add-non-vshard-cluster-template branch from 69f7f26 to d994e9b Compare July 22, 2025 10:16
@elhimov elhimov requested a review from dmyger July 22, 2025 10:19
@dmyger dmyger merged commit 90eb033 into master Jul 22, 2025
44 of 47 checks passed
@dmyger dmyger deleted the elhimov/gh-1182-add-non-vshard-cluster-template branch July 22, 2025 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Enables full ci tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create: add template for non-vshard Cluster
3 participants