diff --git a/docs/cql/_common/tablets-default.rst b/docs/cql/_common/tablets-default.rst new file mode 100644 index 0000000000..b1e80b8cf1 --- /dev/null +++ b/docs/cql/_common/tablets-default.rst @@ -0,0 +1,3 @@ +By default, a keyspace is created with tablets enabled. The ``tablets`` option +is used to opt out a keyspace from tablets-based distribution; see :ref:`Enabling Tablets ` +for details. \ No newline at end of file diff --git a/docs/cql/ddl.rst b/docs/cql/ddl.rst index d1c46bc5c0..f6974482a9 100644 --- a/docs/cql/ddl.rst +++ b/docs/cql/ddl.rst @@ -116,7 +116,7 @@ name kind mandatory default description details below). ``durable_writes`` *simple* no true Whether to use the commit log for updates on this keyspace (disable this option at your own risk!). -``tablets`` *map* no Enables or disables tablets for the keyspace (see :ref:`tablets`) +``tablets`` *map* no Enables or disables tablets for the keyspace (see :ref:`tablets `) =================== ========== =========== ========= =================================================================== The ``replication`` property is mandatory and must at least contains the ``'class'`` sub-option, which defines the @@ -232,9 +232,7 @@ sub-option type description ``'initial'`` int The number of tablets to start with ===================================== ====== ============================================= -By default, a keyspace is created with tablets enabled. The ``tablets`` option -is used to opt out a keyspace from tablets-based distribution; see :ref:`Enabling Tablets ` -for details. +.. scylladb_include_flag:: tablets-default.rst A good rule of thumb to calculate initial tablets is to divide the expected total storage used by tables in this keyspace by (``replication_factor`` * 5GB). For example, if you expect a 30TB