-
Notifications
You must be signed in to change notification settings - Fork 43
Use the CRUD module in the 'Creating a sharded cluster' tutorial #4338
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
Conversation
a48aac8
to
a4de561
Compare
a4de561
to
f7b1802
Compare
f7b1802
to
f42fe02
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've glanced over the changes and I've no objections. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, a couple minor comments
doc/how-to/vshard_quick.rst
Outdated
|
||
In this tutorial, you get a sharded cluster up and running on your local machine and learn how to manage the cluster using the tt utility. | ||
To enable sharding in the cluster, the :ref:`vshard <vshard>` module is used. | ||
In this tutorial, the following external modules are used: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same introduction in two sentences in a row.
doc/how-to/vshard_quick.rst
Outdated
In this tutorial, the following external modules are used: | ||
|
||
- :ref:`vshard <vshard>` enables sharding in the cluster. | ||
- `crud <https://github.com/tarantool/crud>`__ allows you to perform CRUD operations in the sharded cluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"crud allows .. CRUD operations" - the wording seems a bit useless:
- those who know the CRUD acronym can guess the module purpose by the name
- those who don't know it aren't getting any useful explanation.
Maybe write something about data operations or manipulation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to allows you to manipulate data in a sharded cluster
.
doc/how-to/vshard_quick.rst
Outdated
@@ -128,6 +131,10 @@ In this section, the following options are configured: | |||
In particular, this option informs other replica set members that the ``replicator`` user should be used to connect to the current instance. | |||
* ``iproto.advertise.sharding`` specifies how to advertise the current instance to a router and rebalancer. | |||
|
|||
The cluster topology defined in the :ref:`following section <vshard-quick-start-configuring-cluster-topology>` also specifies the ``iproto.advertise.client`` option for each instance. | |||
This option accepts a URI used to advertise the instance to clients. | |||
For example, |tcm_full_name| uses these URIs to :ref:`connect <tcm_connect_clusters>` to cluster instances. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a link to TCM? Since it was never introduced and newcomers hardly know about it.
|
||
sharded_cluster:router-a-001> vshard.router.bootstrap() | ||
sharded_cluster_crud:router-a-001> vshard.router.bootstrap() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe mention thett rs vshard bootstrap
alternative?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, an idea: I've recently read the vshard.router.bootstrap reference and found it very useful for newcomers. bootstrap
is a pretty technical and broad term, while .. and distribute buckets
makes is really easy to understand for the first time.
01c0665
to
2e3a499
Compare
2e3a499
to
98306a5
Compare
Previous update (migrating tutorial to a new config): #4042.
Fixes #4282.
crud
module: Creating a sharded cluster. A new configuration also includes theiproto.advertise.client
option specified for each instance (see Step 4: Defining the cluster topology). So, along with using thecrud
module the resulting cluster can be managed by TCM and can be used to demonstrate TCM capabilities.sharded_cluster_crud
sample:sharded_cluster_crud
andsharded_cluster
samples.Note that the old
sharded_cluster
sample still exists and its code snippets are referenced in the Sharding with vshard topic.