@@ -731,13 +731,13 @@ Shows the current state of a replica set node in regards to leader election.
731
731
:header-rows: 0
732
732
733
733
* - ``tnt_election_state ``
734
- - election state (mode) of the node.
734
+ - Election state (mode) of the node.
735
735
When election is enabled, the node is writable only in the leader state.
736
736
Possible values:
737
737
738
- * 0 (``follower ``) -- all the non-leader nodes are called followers
739
- * 1 (``candidate ``) -- the nodes that start a new election round are called candidates.
740
- * 2 (``leader ``) -- the node that collected a quorum of votes becomes the leader
738
+ * 0 (``follower ``): all the non-leader nodes are called followers
739
+ * 1 (``candidate ``): the nodes that start a new election round are called candidates.
740
+ * 2 (``leader ``): the node that collected a quorum of votes becomes the leader
741
741
742
742
* - ``tnt_election_vote ``
743
743
- ID of a node the current node votes for.
@@ -758,6 +758,7 @@ Memtx
758
758
759
759
Memtx mvcc memory statistics.
760
760
Transaction manager consists of two parts:
761
+
761
762
- the transactions themselves (TXN section)
762
763
- MVCC
763
764
@@ -778,38 +779,29 @@ TXN
778
779
This metric always has the label ``{kind="..."} ``,
779
780
which has the following possible values:
780
781
781
- * ``total ``
782
- The number of bytes that are allocated for the statements of all current transactions.
783
- * ``average ``
784
- Average bytes used by transactions for statements
782
+ * ``total ``: the number of bytes that are allocated for the statements of all current transactions.
783
+ * ``average ``: average bytes used by transactions for statements
785
784
(`txn.statements.total ` bytes / number of open transactions).
786
- * ``max ``
787
- The maximum number of bytes used by one the current transaction for statements.
785
+ * ``max ``: the maximum number of bytes used by one the current transaction for statements.
788
786
789
787
* - ``tnt_memtx_tnx_user ``
790
788
- In Tarantool C API there is a function `box_txn_alloc() `.
791
789
By using this function user can allocate memory for the current transaction.
792
790
This metric always has the label ``{kind="..."} ``,
793
791
which has the following possible values:
794
792
795
- * ``total ``
796
- Memory allocated by the `box_txn_alloc() ` function on all current transactions.
797
- * ``average ``
798
- Transaction average (total allocated bytes / number of all current transactions).
799
- * ``max ``
800
- The maximum number of bytes allocated by `box_txn_alloc() ` function per transaction.
793
+ * ``total ``: memory allocated by the `box_txn_alloc() ` function on all current transactions.
794
+ * ``average ``: transaction average (total allocated bytes / number of all current transactions).
795
+ * ``max ``: the maximum number of bytes allocated by `box_txn_alloc() ` function per transaction.
801
796
802
797
* - ``tnt_memtx_tnx_system ``
803
798
- There are internals: logs, savepoints.
804
799
This metric always has the label ``{kind="..."} ``,
805
800
which has the following possible values:
806
801
807
- * ``total ``
808
- Memory allocated by internals on all current transactions.
809
- * ``average ``
810
- Average allocated memory by internals (total memory / number of all current transactions).
811
- * ``max ``
812
- The maximum number of bytes allocated by internals per transaction.
802
+ * ``total ``: memory allocated by internals on all current transactions.
803
+ * ``average ``: average allocated memory by internals (total memory / number of all current transactions).
804
+ * ``max ``: the maximum number of bytes allocated by internals per transaction.
813
805
814
806
.. _metrics-reference-memtx_mvcc :
815
807
@@ -831,24 +823,18 @@ It detects conflicts and makes sure that tuples that are no longer in the space,
831
823
This metric always has the label ``{kind="..."} ``,
832
824
which has the following possible values:
833
825
834
- * ``total ``
835
- Trackers of all current transactions are allocated in total (in bytes).
836
- * ``average ``
837
- Average for all current transactions (total memory bytes / number of transactions).
838
- * ``max ``
839
- Maximum trackers allocated per transaction (in bytes).
826
+ * ``total ``: trackers of all current transactions are allocated in total (in bytes).
827
+ * ``average ``: average for all current transactions (total memory bytes / number of transactions).
828
+ * ``max ``: maximum trackers allocated per transaction (in bytes).
840
829
841
830
* - ``tnt_memtx_mvcc_conflicts ``
842
831
- Allocated in case of transaction conflicts.
843
832
This metric always has the label ``{kind="..."} ``,
844
833
which has the following possible values:
845
834
846
- * ``total ``
847
- Bytes allocated for conflicts in total.
848
- * ``average ``
849
- Average for all current transactions (total memory bytes / number of transactions).
850
- * ``max ``
851
- Maximum bytes allocated for conflicts per transaction.
835
+ * ``total ``: bytes allocated for conflicts in total.
836
+ * ``average ``: average for all current transactions (total memory bytes / number of transactions).
837
+ * ``max ``: maximum bytes allocated for conflicts per transaction.
852
838
853
839
854
840
.. _metrics-reference-tuples :
@@ -860,6 +846,7 @@ Tuples
860
846
Saved tuples are divided into 3 categories: ``used ``, ``read_view ``, ``tracking ``.
861
847
862
848
Each category has two metrics:
849
+
863
850
- ``retained `` tuples - they are no longer in the index, but MVCC does not allow them to be removed.
864
851
- ``stories `` - MVCC is based on the story mechanism, almost every tuple has a story.
865
852
This is a separate metric because even the tuples that are in the index can have a story.
@@ -876,32 +863,26 @@ So ``stories`` and ``retained`` need to be measured separately.
876
863
This metric always has the label ``{kind="..."} ``,
877
864
which has the following possible values:
878
865
879
- * ``count ``
880
- Number of ``used `` tuples / number of stories.
881
- * ``total ``
882
- Amount of bytes used by stories ``used `` tuples.
866
+ * ``count ``: number of ``used `` tuples / number of stories.
867
+ * ``total ``: amount of bytes used by stories ``used `` tuples.
883
868
884
869
* - ``tnt_memtx_mvcc_tuples_used_retained ``
885
870
- Tuples that are used by active read-write transactions.
886
871
But they are no longer in the index, but MVCC does not allow them to be removed.
887
872
This metric always has the label ``{kind="..."} ``,
888
873
which has the following possible values:
889
874
890
- * ``count ``
891
- Number of retained ``used `` tuples / number of stories.
892
- * ``total ``
893
- Amount of bytes used by retained ``used `` tuples.
875
+ * ``count ``: number of retained ``used `` tuples / number of stories.
876
+ * ``total ``: amount of bytes used by retained ``used `` tuples.
894
877
895
878
* - ``tnt_memtx_mvcc_tuples_read_view_stories ``
896
879
- Tuples that are not used by active read-write transactions,
897
880
but are used by read-only transactions (i.e. in read view).
898
881
This metric always has the label ``{kind="..."} ``,
899
882
which has the following possible values:
900
883
901
- * ``count ``
902
- Number of ``read_view `` tuples / number of stories.
903
- * ``total ``
904
- Amount of bytes used by stories ``read_view `` tuples.
884
+ * ``count ``: number of ``read_view `` tuples / number of stories.
885
+ * ``total ``: amount of bytes used by stories ``read_view `` tuples.
905
886
906
887
* - ``tnt_memtx_mvcc_tuples_read_view_retained ``
907
888
- Tuples that are not used by active read-write transactions,
@@ -910,31 +891,25 @@ So ``stories`` and ``retained`` need to be measured separately.
910
891
This metric always has the label ``{kind="..."} ``,
911
892
which has the following possible values:
912
893
913
- * ``count ``
914
- Number of retained ``read_view `` tuples / number of stories.
915
- * ``total ``
916
- Amount of bytes used by retained ``read_view `` tuples.
894
+ * ``count ``: number of retained ``read_view `` tuples / number of stories.
895
+ * ``total ``: amount of bytes used by retained ``read_view `` tuples.
917
896
918
897
* - ``tnt_memtx_mvcc_tuples_tracking_stories ``
919
898
- Tuples that are not directly used by any transactions, but are used by MVCC to track reads.
920
899
This metric always has the label ``{kind="..."} ``,
921
900
which has the following possible values:
922
901
923
- * ``count ``
924
- Number of ``tracking `` tuples / number of tracking stories.
925
- * ``total ``
926
- Amount of bytes used by stories ``tracking `` tuples.
902
+ * ``count ``: number of ``tracking `` tuples / number of tracking stories.
903
+ * ``total ``: amount of bytes used by stories ``tracking `` tuples.
927
904
928
905
* - ``tnt_memtx_mvcc_tuples_tracking_retained ``
929
906
- Tuples that are not directly used by any transactions, but are used by MVCC to track reads.
930
907
This tuples are no longer in the index, but MVCC does not allow them to be removed.
931
908
This metric always has the label ``{kind="..."} ``,
932
909
which has the following possible values:
933
910
934
- * ``count ``
935
- Number of retained ``tracking `` tuples / number of stories.
936
- * ``total ``
937
- Amount of bytes used by retained ``tracking `` tuples.
911
+ * ``count ``: number of retained ``tracking `` tuples / number of stories.
912
+ * ``total ``: amount of bytes used by retained ``tracking `` tuples.
938
913
939
914
940
915
.. _metrics-reference-read-view :
0 commit comments