|
| 1 | +.. _atlas-cli-search-nodes-config-file: |
| 2 | + |
| 3 | +=============================== |
| 4 | +Search Nodes Configuration File |
| 5 | +=============================== |
| 6 | + |
| 7 | +.. contents:: On this page |
| 8 | + :local: |
| 9 | + :backlinks: none |
| 10 | + :depth: 1 |
| 11 | + :class: singlecol |
| 12 | + |
| 13 | +To create or update :atlas:`search nodes |
| 14 | +</cluster-config/multi-cloud-distribution/#std-label-configure-search-nodes>` |
| 15 | +for a {+cluster+} by using the {+atlas-cli+}, you can use a ``.json`` |
| 16 | +configuration file to specify the required search nodes settings. |
| 17 | + |
| 18 | +.. _search-nodes-settings: |
| 19 | + |
| 20 | +Search Nodes Settings |
| 21 | +--------------------- |
| 22 | + |
| 23 | +You can specify the following settings in the search nodes |
| 24 | +configuration file. For a full list of settings and |
| 25 | +descriptions, see the :oas-atlas-op:`API specification |
| 26 | +</createAtlasSearchDeployment>`. |
| 27 | + |
| 28 | +.. list-table:: |
| 29 | + :header-rows: 1 |
| 30 | + :widths: 20 10 70 |
| 31 | + |
| 32 | + * - Field |
| 33 | + - Type |
| 34 | + - Description |
| 35 | + |
| 36 | + * - ``specs`` |
| 37 | + - Array of objects |
| 38 | + - Settings to configure search nodes for your {+cluster+}. |
| 39 | + |
| 40 | + * - ``specs.instanceSize`` |
| 41 | + - string |
| 42 | + - Hardware specification for the search node instance sizes. |
| 43 | + This setting uses the following format: |
| 44 | + |
| 45 | + - ``<instance-size>_HIGHCPU_NVME`` |
| 46 | + - ``<instance-size>_LOWCPU_NVME`` |
| 47 | + |
| 48 | + For example, ``S20_HIGHCPU_NVME``. |
| 49 | + To learn more, see :atlas:`Search Nodes Costs |
| 50 | + </billing/search-node>`. |
| 51 | + |
| 52 | + * - ``specs.nodeCount`` |
| 53 | + - integer |
| 54 | + - Number of search nodes in the {+cluster+}. |
| 55 | + |
| 56 | +.. _example-search-nodes-config-file: |
| 57 | + |
| 58 | +Example Search Nodes Configuration File |
| 59 | +--------------------------------------- |
| 60 | + |
| 61 | +To create or update search nodes on your {+cluster+}, |
| 62 | +define the search nodes settings in your |json| file |
| 63 | +as shown in the following example file: |
| 64 | + |
| 65 | +.. literalinclude:: /includes/create-search-node-config-file.json |
| 66 | + |
| 67 | +Example Search Nodes Configuration Commands |
| 68 | +------------------------------------------- |
| 69 | + |
| 70 | +After you create the file, run the {+atlas-cli+} command |
| 71 | +to create or update search nodes and specify |
| 72 | +the ``clusterName`` and ``file`` options. |
| 73 | + |
| 74 | +Create Search Nodes |
| 75 | +~~~~~~~~~~~~~~~~~~~ |
| 76 | + |
| 77 | +The following example creates search nodes for the {+cluster+} named |
| 78 | +``myCluster`` using a JSON configuration file named |
| 79 | +``search-nodes-config.json``: |
| 80 | + |
| 81 | +.. code-block:: |
| 82 | + |
| 83 | + atlas clusters search nodes create --clusterName myCluster --file search-nodes-config.json |
| 84 | + |
| 85 | +Update Search Nodes |
| 86 | +~~~~~~~~~~~~~~~~~~~ |
| 87 | + |
| 88 | +The following example updates search nodes for the {+cluster+} named |
| 89 | +``myCluster`` using a JSON configuration file named |
| 90 | +``search-nodes-config.json``: |
| 91 | + |
| 92 | +.. code-block:: |
| 93 | + |
| 94 | + atlas clusters search nodes update --clusterName myCluster --file search-nodes-config.json |
0 commit comments