forked from mongodb/docs-cluster-to-cluster-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.txt
142 lines (86 loc) · 3.05 KB
/
configuration.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
.. _c2c-config:
=============
Configuration
=============
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 2
:class: singlecol
You can configure :program:`mongosync` instances at startup using a
configuration file. The configuration file contains settings that are
the equivalent of ``mongosync`` command line options.
Configuration File
==================
Most :program:`mongosync` command line options can be written to a YAML
file. The configuration file specifies values for each setting using
YAML format.
For example:
.. code-block:: yaml
cluster0: "mongodb://192.0.2.10:27017"
cluster1: "mongodb://192.0.2.20:27017"
logPath: "/var/log/mongosync"
verbosity: "WARN"
To use a configuration file, start ``mongosync`` with the
:option:`--config` option to set the path to the file:
.. code-block:: console
$ mongosync --config mongosync.conf
Options
=======
.. note::
The ``start`` command provides additional options for features like
``reversibility`` and ``user write blocking``. For more details, see
the :ref:`start <c2c-api-start>` API documentation.
.. |opt-term| replace:: setting
.. setting:: cluster0
*Type*: string
.. include:: /includes/opts/cluster0.rst
To set the ``cluster0`` setting from the command line, see the
:option:`--cluster0` option.
.. setting:: cluster1
*Type*: string
.. include:: /includes/opts/cluster1.rst
To set the ``cluster1`` setting from the command line,
see the :option:`--cluster1` option.
.. setting:: disableTelemetry
*Type*: boolean
.. versionadded:: 1.4.0
.. include:: /includes/opts/disableTelemetry
To set the ``disableTelemetry`` setting from the command line,
see the :option:`--disableTelemetry` option.
For more information, see :ref:`User Data Collection
<c2c-telemetry>`.
.. setting:: id
*Type*: string
.. include:: /includes/opts/id.rst
To set the ``id`` setting from the command line, see the
:option:`--id` option.
.. setting:: loadLevel
*Type*: integer
.. include:: /includes/opts/loadLevel.rst
To set the ``loadLevel`` setting from the command line, see the
:option:`--loadLevel` option.
.. include:: /includes/opts/loadlevel-warning.rst
.. setting:: logPath
*Type*: string
.. include:: /includes/opts/logPath.rst
To set the ``logPath`` setting from the command line, see the
:option:`--logPath` option.
.. setting:: migrationName
*Type*: string
.. include:: /includes/opts/migrationName.rst
To set the ``migrationName`` setting from the command line, see the
:option:`--migrationName` option.
.. setting:: port
*Type*: integer
.. include:: /includes/opts/port.rst
To set the ``port`` setting from the command line, see the
:option:`--port` option.
.. setting:: verbosity
*Type*: string
.. |verbosity-opt-type| replace:: setting
.. |verbosity-opt| replace:: ``verbosity``
.. include:: /includes/opts/verbosity.rst
To set the ``verbosity`` setting from the command line, see the
:option:`--verbosity` option.