You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TBD--do we need this?] As described before, you can specify configuration parameters via environment variables
326
-
and then pass them to ``box.cfg{}`` by using the ``os.getenv()`` function (see the :ref:`example <index-init-example>`).
320
+
Setting via environment variables
321
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
327
322
328
-
Starting from version :doc:`2.8.1 </release/2.8.1>`, you can specify such parameters [via environment variables] in much easier way.
323
+
Starting from version :doc:`2.8.1 </release/2.8.1>`, you can specify configuration parameters via special environment variables.
324
+
The name of a variable should have the following pattern: ``TT_<NAME>``,
325
+
where ``<NAME>`` is the uppercase name of the corresponding :ref:`box.cfg parameter <box-cfg-params-ref>`.
329
326
330
-
[TBD] The name of a variable should have the following pattern: ``TT_<NAME>``,
331
-
where ``<NAME>`` is the uppercase name of the corresponding ``box.cfg`` option.
332
-
333
-
[TBD]--maybe give an example with the value, and only for tt_listen.
334
327
For example:
335
328
336
329
* ``TT_LISTEN``---corresponds to the ``box.cfg.listen`` option.
337
-
* ``TT_REPLICATION``---corresponds to the ``box.cfg.replication`` option..
338
-
339
-
[TBD] On Tarantool start and the ``box.cfg{}`` call, the values of the ``TT_<NAME>`` environment variables will be set for the corresponding configuration parameters.
340
-
[TBD] ?Note on priorities?
330
+
* ``TT_REPLICATION``---corresponds to the ``box.cfg.replication`` option.
341
331
342
-
[TBD] Array values should be separated by comma without space:
332
+
In case of an array value, separate the array elements by comma without space:
[TBD] An empty variable (``TT_LISTEN=``) has the effect as an unset one [meaning that the corresponding configuration parameter won't be set when calling ``box.cfg{}``].
338
+
If you need to pass :ref:`additional parameters for URI <index-uri-several-params>`, use the ``?`` and ``&`` delimiters:
An empty variable (``TT_LISTEN=``) has the same effect as an unset one meaning that the corresponding configuration parameter won't be set when calling ``box.cfg{}``.
345
+
346
+
.. _box-cfg-params-ref:
347
+
348
+
Reference
349
+
~~~~~~~~~
356
350
357
-
[TBD]--1) title 2) intro phrase and possibly local ToC
351
+
The sections that follow describe all configuration parameters for basic operations, storage,
352
+
binary logging and snapshots, replication, networking, logging, and feedback.
358
353
359
-
The sections that follow describe all parameters for basic operation, for storage,
360
-
for binary logging and snapshots, for replication, for networking,
0 commit comments