Skip to content
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

New tt CLI module - cluster #3725

Closed
TarantoolBot opened this issue Sep 20, 2023 · 0 comments · Fixed by #4046
Closed

New tt CLI module - cluster #3725

TarantoolBot opened this issue Sep 20, 2023 · 0 comments · Fixed by #4046
Assignees

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Sep 20, 2023

Product: tt CLI
Since: with Tarantool 3.0
Audience/target: all
Root document: https://www.tarantool.io/en/doc/latest/reference/commands/
SME: @ psergee @ oleg-jukovec

Details

The patch introduces a new module cluster. The module has two
commands:

  • show - to show a configuration for a cluster or an instance.
  • publish - to publish a cluster or an instance configuration.

The target could be a cluster or an instance configuration. It could
be a fully-merged (from all sources) configuration for an application
or just a remote configuration part in case of etcd.

Usage:

  • tt cluster show (<APP_NAME> | <APP_NAME:INSTANCE_NAME> | <URI>) [--validate]
    • The optional --validate flag enables validation for a showed
      configuration.
  • tt cluster publish (<APP_NAME> | <APP_NAME:INSTANCE_NAME> | <URI>) file [--force]
    • The optional --force flag skips validation of uploaded
      configuration.

The APP_NAME is a name of an application.

The INSTANCE_NAME is a name of an instance in the application.

The URI specifies a etcd connection settings in the following format:

http(s)://[username:password@]host:port[/prefix][?arguments]

  • prefix - a base path to Tarantool configuration in etcd.

Possible arguments:

  • name - a name of an instance in the cluster configuration.
  • timeout - a request timeout in seconds (default 3.0).
  • ssl_key_file - a path to a private SSL key file.
  • ssl_cert_file - a path to an SSL certificate file.
  • ssl_ca_file - a path to a trusted certificate authorities (CA)
    file.
  • ssl_ca_path - a path to a trusted certificate authorities (CA)
    directory.
  • verify_host - set off (default true) verification of the
    certificate’s name against the host.
  • verify_peer - set off (default true) verification of the peer’s
    SSL certificate.

See also: Working with tt cluster.

Part of #506
Requested by @oleg-jukovec in tarantool/tt@be252da.

@p7nov p7nov added the tt cli label Sep 28, 2023
@p7nov p7nov changed the title new module - cluster New tt CLI module - cluster Sep 28, 2023
@p7nov p7nov added the 3.0 label Sep 28, 2023
@p7nov p7nov removed their assignment Oct 4, 2023
@p7nov p7nov mentioned this issue Oct 5, 2023
5 tasks
@p7nov p7nov mentioned this issue Jan 18, 2024
5 tasks
@p7nov p7nov self-assigned this Feb 6, 2024
p7nov added a commit that referenced this issue Feb 20, 2024
Resolves #3725, #3929

Co-authored-by: Andrey Aksenov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants