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

replicaset: implement bootstrap / rebootstrap commands #316

Closed
LeonidVas opened this issue Jan 24, 2023 · 1 comment · Fixed by #897
Closed

replicaset: implement bootstrap / rebootstrap commands #316

LeonidVas opened this issue Jan 24, 2023 · 1 comment · Fixed by #897
Assignees

Comments

@LeonidVas
Copy link
Collaborator

Implement bootstrap / rebootstrap commands.

@askalt
Copy link
Contributor

askalt commented Apr 5, 2024

Was decided to implement:
tt rs vshard bootstrap - bootstraps vshard in cartridge/3.0 cluster.
tt rs bootstrap - bootstraps an instance in cartridge/3.0 replicaset (by the fact, new instance joins to the replicaset).
tt rs reboostrap - restarts an instance in the replicaset trying to save uuid, if it could be done.

@askalt askalt assigned askalt and unassigned oleg-jukovec Apr 5, 2024
askalt added a commit that referenced this issue Apr 11, 2024
askalt added a commit that referenced this issue Apr 11, 2024
askalt added a commit that referenced this issue Apr 11, 2024
askalt added a commit that referenced this issue Apr 11, 2024
@TarantoolBot document
Title: `tt replicaset vshard bootstrap` - bootstraps vshard in the cluster

This patch introduces new subcommand for the replicaset module.
`tt replicaset vshard` - manages vshard in the cluster.

`tt replicaset vshard bootstrap [--cartridge|--config] [flags] (<APP_NAME> | <APP_NAME:INSTANCE_NAME> | <URI>)`

* Bootstraps vshard in the replicaset.

* Cartridge: by fact, it is the clone of `cartridge-cli replicasets bootstrap-vshard`.

* Centralized config (3.0): lookups for the router in the cluster and calls `vshard.router.bootstrap()` on it.

Part of #316
askalt added a commit that referenced this issue Apr 11, 2024
askalt added a commit that referenced this issue Apr 11, 2024
@TarantoolBot document
Title: `tt replicaset vshard bootstrap` - bootstraps vshard in the cluster

This patch introduces new subcommand for the replicaset module.
`tt replicaset vshard` - manages vshard in the cluster.

`tt replicaset vshard bootstrap [--cartridge|--config] [flags] (<APP_NAME> | <APP_NAME:INSTANCE_NAME> | <URI>)`

* Bootstraps vshard in the replicaset.

* Cartridge: by fact, it is the clone of `cartridge-cli replicasets bootstrap-vshard`.

* Centralized config (3.0): lookups for the router in the cluster and calls `vshard.router.bootstrap()` on it.

Part of #316
askalt added a commit that referenced this issue Apr 12, 2024
askalt added a commit that referenced this issue Apr 12, 2024
@TarantoolBot document
Title: `tt replicaset vshard bootstrap` - bootstraps vshard in the cluster

This patch introduces new subcommand for the replicaset module.
`tt replicaset vshard` - manages vshard in the cluster.

`tt replicaset vshard bootstrap [--cartridge|--config] [flags] (<APP_NAME> | <APP_NAME:INSTANCE_NAME> | <URI>)`

* Bootstraps vshard in the replicaset.

* Cartridge: by fact, it is the clone of `cartridge-cli replicasets bootstrap-vshard`.

* Centralized config (3.0): lookups for the router in the cluster and calls `vshard.router.bootstrap()` on it.

Part of #316
askalt added a commit that referenced this issue Apr 15, 2024
askalt added a commit that referenced this issue Apr 15, 2024
askalt added a commit that referenced this issue Apr 15, 2024
askalt added a commit that referenced this issue Apr 15, 2024
@TarantoolBot document
Title: `tt replicaset vshard bootstrap` - bootstraps vshard in the cluster

This patch introduces new subcommand for the replicaset module.
`tt replicaset vshard` - manages vshard in the cluster.

`tt replicaset vshard bootstrap [--cartridge|--config] [flags] (<APP_NAME> | <APP_NAME:INSTANCE_NAME> | <URI>)`

* Bootstraps vshard in the replicaset.

* Cartridge: by fact, it is the clone of `cartridge-cli replicasets bootstrap-vshard`.

* Centralized config (3.0): lookups for the router in the cluster and calls `vshard.router.bootstrap()` on it.

Part of #316
askalt added a commit that referenced this issue Apr 15, 2024
askalt added a commit that referenced this issue Apr 15, 2024
askalt added a commit that referenced this issue Apr 15, 2024
askalt added a commit that referenced this issue Apr 15, 2024
@TarantoolBot document
Title: `tt replicaset vshard bootstrap` - bootstraps vshard in the cluster

This patch introduces new subcommand for the replicaset module.
`tt replicaset vshard` - manages vshard in the cluster.

`tt replicaset vshard bootstrap [--cartridge|--config] [flags] (<APP_NAME> | <APP_NAME:INSTANCE_NAME> | <URI>)`

* Bootstraps vshard in the replicaset.

* Cartridge: by fact, it is the clone of `cartridge-cli replicasets bootstrap-vshard`.

* Centralized config (3.0): lookups for the router in the cluster and calls `vshard.router.bootstrap()` on it.

Part of #316
askalt added a commit that referenced this issue Apr 16, 2024
This patchs adds an ability to publish a new instance configuration with `tt cluster publish`.
Prior this patch this command returns an error if the instance is not found in the config.

Now, to create a new instance configuration, a replicaset name with `--replicaset` can be specified,
and, if it's not enough, a group name with `--group`.

Part of #316
psergee pushed a commit that referenced this issue Jun 25, 2024
psergee pushed a commit that referenced this issue Jun 25, 2024
psergee pushed a commit that referenced this issue Jun 25, 2024
@TarantoolBot document
Title: `tt replicaset bootstrap` bootstraps a Cartridge app or an instance

This patch adds new subcommand for the replicaset module.
`tt replicaset bootstrap [flags] <APP_NAME|APP_NAME:INSTANCE_NAME>` bootstraps a Cartridge cluster
or an instance.

The command combines two old cartridge-cli commands: `setup` and `join`.
Examples:

`tt replicaset bootstrap cartridge_app` bootstraps the cluster from the default
config file ("replicasets.yml" in the app directory), the file can be specified with `--file` option.

`tt replicaset bootstrap --bootstrap-vshard cartridge_app` bootstraps the cluster and vshard.

`tt replicaset bootstrap --replicaset replicaset cartridge_app:inst` joins the instance "inst" to the replicaset "replicaset".

Part of #316
psergee pushed a commit that referenced this issue Jun 26, 2024
psergee pushed a commit that referenced this issue Jun 26, 2024
psergee pushed a commit that referenced this issue Jun 26, 2024
@TarantoolBot document
Title: `tt replicaset bootstrap` bootstraps a Cartridge app or an instance

This patch adds new subcommand for the replicaset module.
`tt replicaset bootstrap [flags] <APP_NAME|APP_NAME:INSTANCE_NAME>` bootstraps a Cartridge cluster
or an instance.

The command combines two old cartridge-cli commands: `setup` and `join`.
Examples:

`tt replicaset bootstrap cartridge_app` bootstraps the cluster from the default
config file ("replicasets.yml" in the app directory), the file can be specified with `--file` option.

`tt replicaset bootstrap --bootstrap-vshard cartridge_app` bootstraps the cluster and vshard.

`tt replicaset bootstrap --replicaset replicaset cartridge_app:inst` joins the instance "inst" to the replicaset "replicaset".

Part of #316
psergee pushed a commit that referenced this issue Jun 28, 2024
Part of #316

@TarantoolBot document
Title: `tt replicaset bootstrap` bootstraps a Cartridge app or an instance

This patch adds new subcommand for the replicaset module.
`tt replicaset bootstrap [flags] <APP_NAME|APP_NAME:INSTANCE_NAME>` bootstraps a Cartridge cluster
or an instance.

The command combines two old cartridge-cli commands: `setup` and `join`.
Examples:

`tt replicaset bootstrap cartridge_app` bootstraps the cluster from the default
config file ("replicasets.yml" in the app directory), the file can be specified with `--file` option.

`tt replicaset bootstrap --bootstrap-vshard cartridge_app` bootstraps the cluster and vshard.

`tt replicaset bootstrap --replicaset replicaset cartridge_app:inst` joins the instance "inst" to the replicaset "replicaset".
psergee pushed a commit that referenced this issue Jun 28, 2024
Part of #316

@TarantoolBot document
Title: `tt replicaset bootstrap` bootstraps a Cartridge app or an instance

This patch adds new subcommand for the replicaset module.
`tt replicaset bootstrap [flags] <APP_NAME|APP_NAME:INSTANCE_NAME>` bootstraps a Cartridge cluster
or an instance.

The command combines two old cartridge-cli commands: `setup` and `join`.
Examples:

`tt replicaset bootstrap cartridge_app` bootstraps the cluster from the default
config file ("replicasets.yml" in the app directory), the file can be specified with `--file` option.

`tt replicaset bootstrap --bootstrap-vshard cartridge_app` bootstraps the cluster and vshard.

`tt replicaset bootstrap --replicaset replicaset cartridge_app:inst` joins the instance "inst" to the replicaset "replicaset".
psergee added a commit that referenced this issue Jul 3, 2024
psergee added a commit that referenced this issue Jul 5, 2024
psergee added a commit that referenced this issue Jul 8, 2024
psergee added a commit that referenced this issue Jul 8, 2024
psergee added a commit that referenced this issue Jul 8, 2024
psergee added a commit that referenced this issue Jul 9, 2024
psergee pushed a commit that referenced this issue Jul 16, 2024
psergee pushed a commit that referenced this issue Jul 16, 2024
psergee pushed a commit that referenced this issue Jul 16, 2024
Part of #316

@TarantoolBot document
Title: `tt replicaset bootstrap` bootstraps a Cartridge app or an instance

This patch adds new subcommand for the replicaset module.
`tt replicaset bootstrap [flags] <APP_NAME|APP_NAME:INSTANCE_NAME>` bootstraps a Cartridge cluster
or an instance.

The command combines two old cartridge-cli commands: `setup` and `join`.
Examples:

`tt replicaset bootstrap cartridge_app` bootstraps the cluster from the default
config file ("replicasets.yml" in the app directory), the file can be specified with `--file` option.

`tt replicaset bootstrap --bootstrap-vshard cartridge_app` bootstraps the cluster and vshard.

`tt replicaset bootstrap --replicaset replicaset cartridge_app:inst` joins the instance "inst" to the replicaset "replicaset".
psergee added a commit that referenced this issue Jul 16, 2024
psergee added a commit that referenced this issue Jul 16, 2024
psergee added a commit that referenced this issue Jul 18, 2024
Closes #316

@TarantoolBot document
Title: `tt replicaset rebootstrap` re-bootstraps an instance

This patch adds new subcommand for the replicaset module.
`tt replicaset rebootstrap [flags] <APP_NAME:INSTANCE_NAME>`
re-bootstraps an instance: stops it, removes instance artifacts,
starts it again.
psergee added a commit that referenced this issue Jul 18, 2024
Closes #316

@TarantoolBot document
Title: `tt replicaset rebootstrap` re-bootstraps an instance

This patch adds new subcommand for the replicaset module.
`tt replicaset rebootstrap [flags] <APP_NAME:INSTANCE_NAME>`
re-bootstraps an instance: stops it, removes instance artifacts,
starts it again.
psergee added a commit that referenced this issue Jul 19, 2024
Closes #316

@TarantoolBot document
Title: `tt replicaset rebootstrap` re-bootstraps an instance

This patch adds new subcommand for the replicaset module.
`tt replicaset rebootstrap [flags] <APP_NAME:INSTANCE_NAME>`
re-bootstraps an instance: stops it, removes instance artifacts,
starts it again.
psergee added a commit that referenced this issue Jul 19, 2024
Closes #316

@TarantoolBot document
Title: `tt replicaset rebootstrap` re-bootstraps an instance

This patch adds new subcommand for the replicaset module.
`tt replicaset rebootstrap [flags] <APP_NAME:INSTANCE_NAME>`
re-bootstraps an instance: stops it, removes instance artifacts,
starts it again.
psergee added a commit that referenced this issue Jul 19, 2024
Closes #316

@TarantoolBot document
Title: `tt replicaset rebootstrap` re-bootstraps an instance

This patch adds new subcommand for the replicaset module.
`tt replicaset rebootstrap [flags] <APP_NAME:INSTANCE_NAME>`
re-bootstraps an instance: stops it, removes instance artifacts,
starts it again.
psergee added a commit that referenced this issue Jul 19, 2024
Closes #316

@TarantoolBot document
Title: `tt replicaset rebootstrap` re-bootstraps an instance

This patch adds new subcommand for the replicaset module.
`tt replicaset rebootstrap [flags] <APP_NAME:INSTANCE_NAME>`
re-bootstraps an instance: stops it, removes instance artifacts,
starts it again.
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.

5 participants