Skip to content

Commit

Permalink
Merge pull request #9950 from gyuho/doc-metrics
Browse files Browse the repository at this point in the history
docs: automate metrics list documentation
  • Loading branch information
gyuho committed Jul 24, 2018
2 parents 69ae028 + 752dd3a commit dd44069
Show file tree
Hide file tree
Showing 10 changed files with 3,093 additions and 26 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ clean:
rm -rf ./gopath.proto
rm -rf ./release
rm -f ./snapshot/localhost:*
rm -f ./tools/etcd-dump-metrics/localhost:*
rm -f ./integration/127.0.0.1:* ./integration/localhost:*
rm -f ./clientv3/integration/127.0.0.1:* ./clientv3/integration/localhost:*
rm -f ./clientv3/ordering/127.0.0.1:* ./clientv3/ordering/localhost:*
Expand Down
22 changes: 9 additions & 13 deletions docs/faq.rst
Original file line number Diff line number Diff line change
@@ -1,45 +1,41 @@
.. _faq:


FAQs
####


General
=======
#######


What is etcd?
-------------
=============

etcd is a consistent distributed key-value store. Mainly used as a separate coordination service, in distributed systems. And designed to hold small amounts of data that can fit entirely in memory.


How to pronounce etcd?
----------------------
======================

etcd is pronounced ``/etˈ-sē-dē/`` or ``/etˈ-see-dee/``, and means distributed ``etc`` directory.


Do clients have to send requests to the etcd leader?
----------------------------------------------------
====================================================

`Raft <https://raft.github.io/raft.pdf>`_ is leader-based; the leader handles all client requests which need cluster consensus. However, the client does not need to know which node is the leader. Any request that requires consensus sent to a follower is automatically forwarded to the leader. Requests that do not require consensus (e.g., serialized reads) can be processed by any cluster member.


Configuration
=============
#############


Difference between listen-<client,peer>-urls, advertise-client-urls or initial-advertise-peer-urls?
---------------------------------------------------------------------------------------------------
===================================================================================================

``listen-client-urls`` and ``listen-peer-urls`` specify the local addresses etcd server binds to for accepting incoming connections. To listen on a port for all interfaces, specify ``0.0.0.0`` as the listen IP address.
``--listen-client-urls`` and ``--listen-peer-urls`` specify the local addresses etcd server binds to for accepting incoming connections. To listen on a port for all interfaces, specify ``0.0.0.0`` as the listen IP address.

``advertise-client-urls`` and ``initial-advertise-peer-urls`` specify the addresses etcd clients or other etcd members should use to contact the etcd server. The advertise addresses must be reachable from the remote machines. Do not advertise addresses like ``localhost`` or ``0.0.0.0`` for a production setup since these addresses are unreachable from remote machines.
``--advertise-client-urls`` and ``--initial-advertise-peer-urls`` specify the addresses etcd clients or other etcd members should use to contact the etcd server. The advertise addresses must be reachable from the remote machines. Do not advertise addresses like ``localhost`` or ``0.0.0.0`` for a production setup since these addresses are unreachable from remote machines.


Changing "listen-peer-urls" or "initial-advertise-peer-urls" does not update advertised peer URLs in member list output?
------------------------------------------------------------------------------------------------------------------------
========================================================================================================================

A member's advertised peer URLs come from ``--initial-advertise-peer-urls`` on initial cluster boot. Changing the listen peer URLs or the initial advertise peers after booting the member won't affect the exported advertise peer URLs (e.g. ``etcdctl member list`` output remains the same), since changes must go through quorum to avoid membership configuration split brain. Use `etcdctl member update` to update a member's peer URLs.
6 changes: 2 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ This is official etcd documentation.
Still working in progress...

* :ref:`set-up`: setting up an etcd cluster.
* :ref:`operate`: operating an etcd cluster.
* :ref:`monitor`: monitoring an etcd cluster.
* :ref:`faq`: frequently asked questions.
* :ref:`client-architecture`: describes etcd client components.

.. toctree::
:maxdepth: 3
:caption: Set up
:caption: Get started

set-up

.. toctree::
:maxdepth: 3
:caption: Operate
:caption: Operations

operate

Expand Down
896 changes: 896 additions & 0 deletions docs/metrics-latest

Large diffs are not rendered by default.

Loading

0 comments on commit dd44069

Please sign in to comment.