Skip to content

create: add config_storage template #1181

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 10, 2025

Conversation

elhimov
Copy link
Contributor

@elhimov elhimov commented Jul 1, 2025

@TarantoolBot document
Title: tt create support config_storage template.

Configurable parameters:

  • Number of instances in replicaset
  • Interval of status checking
  • User name
  • Password
Example of generated config

Number of instances in replicaset: 3
Interval of status checking: 4
User: me
Password: bla-BLA-bla

instances.yaml

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

config.yaml

credentials:
  users:
    replicator:
      password: 'topsecret'
      roles: [replication]
    me:
      password: 'bla-BLA-bla'
      privileges:
        - permissions: [execute]
          lua_call:
            - config.storage.get
            - config.storage.put
            - config.storage.delete
            - config.storage.keepalive
            - config.storage.txn
            - config.storage.info
        # Not necessary since tarantool 3.5.0, 3.4.1, 3.3.3, 3.2.2.
        - permissions: [read, write]
          spaces: [config_storage, config_storage_meta]

iproto:
  advertise:
    peer:
      login: replicator

replication:
  failover: election

database:
  use_mvcc_engine: true

groups:
  group-001:
    replicasets:
      replicaset-001:
        roles: [config.storage]
        roles_cfg:
          config.storage:
            status_check_interval: 4
        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

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 #1180

@elhimov elhimov marked this pull request as draft July 1, 2025 10:07
@elhimov elhimov force-pushed the elhimov/gh-1180-add-config-storage-template branch 4 times, most recently from 643143b to 8a8a65d Compare July 3, 2025 10:09
@elhimov elhimov marked this pull request as ready for review July 3, 2025 10:10
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, add an example of the generated config into the PR message.

@elhimov elhimov force-pushed the elhimov/gh-1180-add-config-storage-template branch from 8a8a65d to dd5e53a Compare July 4, 2025 01:08
@elhimov elhimov requested a review from dmyger July 4, 2025 01:09
@elhimov elhimov force-pushed the elhimov/gh-1180-add-config-storage-template branch from dd5e53a to 647acef Compare July 4, 2025 01:21
@elhimov elhimov requested a review from oleg-jukovec July 4, 2025 01:21
@elhimov elhimov force-pushed the elhimov/gh-1180-add-config-storage-template branch from 647acef to c266c38 Compare July 4, 2025 07:40
@elhimov elhimov force-pushed the elhimov/gh-1180-add-config-storage-template branch from c266c38 to 40824ad Compare July 4, 2025 10:45
@elhimov elhimov requested a review from dmyger July 4, 2025 10:53
@elhimov elhimov force-pushed the elhimov/gh-1180-add-config-storage-template branch from 40824ad to 4e9a622 Compare July 4, 2025 11:14
@elhimov elhimov requested a review from oleg-jukovec July 4, 2025 11:17
@elhimov
Copy link
Contributor Author

elhimov commented Jul 4, 2025

Please, add an example of the generated config into the PR message.

Done.

Closes #1180

@TarantoolBot document
Title: `tt create` support `config_storage` template.

Configurable parameters:
- Number of instances in replicaset
- Interval of status checking
- User name
- Password
@elhimov elhimov force-pushed the elhimov/gh-1180-add-config-storage-template branch from 4e9a622 to 55e8ef6 Compare July 4, 2025 11:41
@dmyger dmyger merged commit 6801eb4 into master Jul 10, 2025
19 checks passed
@dmyger dmyger deleted the elhimov/gh-1180-add-config-storage-template branch July 10, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create: add template for Tarantool Config Storage
3 participants