Skip to content

Add getting started with TCM tutorial #4022

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 14 commits into from
Feb 1, 2024
Merged

Add getting started with TCM tutorial #4022

merged 14 commits into from
Feb 1, 2024

Conversation

p7nov
Copy link
Contributor

@p7nov p7nov commented Jan 25, 2024

Resolves #4000

  • Added a new tutorial to the How-to section: Getting started with Tarantool Cluster Manager.
  • Added links to the new tutorial to TCM index page and general Getting started page (now a placeholder until we write
    a complete tutorial for Tarantool 3.0)

Deployment: https://docs.d.tarantool.io/en/doc/gh-4000-tcm-quick-start/how-to/getting_started_tcm/

:dedent:

This configuration sets up a cluster of three nodes in one replica set,
one leader and two followers.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
one leader and two followers.
one leader, and two followers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems that colon conveys the meaning better:
three nodes in one replica set: one leader and two followers.


.. code-block:: console

$ tar -xvzf tarantool-enterprise-sdk-gc64-<VERSION>-<HASH>-r<REVISION>>.linux.x86_64.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

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

Given that we show the specific versions after installation, I'd use the real archive name here (tarantool-enterprise-sdk-gc64-3.0.0-0-gf58f7d82a-r23.linux.x86_64.tar.gz). This is also helpful for copy-pasting.

Copy link
Contributor Author

@p7nov p7nov Feb 1, 2024

Choose a reason for hiding this comment

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

This name is already outdated since 3.0.1 SDK is released :)
In the version check, we're just giving an example.


#. Find the connection properties of the configuration storage that the cluster uses.
By default, it's an etcd storage with a prefix ``/default`` running on port
``2379`` (default etcd port) on the same host. Click **Next**.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd separate the concepts of storage and prefix:

  • an etcd storage is running on port 2379
  • /default is a key prefix used to search a configuration

For example: By default, it's an etcd storage running on port **** and storing a configuration in a key with the **** prefix.


#. Check the Tarantool user that |tcm| uses to connect to the cluster instances.
It's ``guest`` by default. Click **Update** to save the changes and return to
the **Clusters** page.
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like we didn't change anything in steps 1-4. Do we really need to click Update?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, nothing changes if we just switch to another TCM page without clicking Update.

include the default etcd and Tarantool connection parameters. Check these properties
to find out where TCM sends the cluster configuration that you write.

To view the **Default cluster**'s properties:
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe, extract info about viewing configuration to a separate sub-section? Smth like this:

  • Setting up a Tarantool EE cluster
    • Checking a cluster's connection settings
    • Configuring a cluster
    • Deploying the cluster locally

----------------

#. Open a web browser and go to ``http://127.0.0.1:8080/``.
#. Log in with the ``admin`` username. The initial password is generated automatically
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor suggestion: Maybe, it's worth mentioning about the generated password in the previous step (while a user in a terminal). Currently, a user runs TCM, then opens a browser, then returns to a terminal once again to find a password.

:alt: Instance terminal in TCM

Creating a space
----------------
Copy link
Contributor

Choose a reason for hiding this comment

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

In the Managing the cluster in TCM, we list the following use cases:

Checking the cluster state.
Creating a space.
Writing data.
Viewing data.

Doesn't this mean that the section structure should look as follows?

  • Managing the cluster in TCM
    • Checking state
    • Connecting to the instance
    • Creating a space (now it is on the top level)
    • Writing data
    • Reading data
    • Checking replication

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, thanks. This was an incorrect heading level.


#. Go to **Configuration**.
#. Click **+** and provide an arbitrary name for the configuration, for example, ``all``.
#. Paste the following YAML configuration into the editor:
Copy link
Contributor

Choose a reason for hiding this comment

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

@p7nov p7nov requested a review from andreyaksenov February 1, 2024 08:14
Copy link
Contributor

@andreyaksenov andreyaksenov left a comment

Choose a reason for hiding this comment

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

LGTM, some minor comments.


.. important::

The |tcm| bootstrap log in the terminal includes a message with the credentials
Copy link
Contributor

Choose a reason for hiding this comment

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

An important note looks a bit weird after not so important note. I'd use two steps in this section:

1) Start tcm
2) Find the message with creds and remember them

> not so important note

@p7nov p7nov merged commit f4a3941 into latest Feb 1, 2024
@p7nov p7nov deleted the gh-4000-tcm-quick-start branch February 1, 2024 09:38
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.

[TCM] Quick start
2 participants