Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
4.0.0, 4.1.0, 4.1.1, 4.1.2, 4.5.0
Description
For erlang-based XDCR it was very easy to list the remote clusters defined in the cluster references as they are listed in the 'remote_clusters' section of the ns_server config:
{remote_clusters,
|
[{'_vclock',[{<<"96535c8c1040be16a7c73bcab285c1e4">>,{1,63629501028}}]},
|
[{uuid,<<"256d8d42cadd376db123689bb7b27fba">>},
|
{name,"ref name"},
|
{hostname,"127.0.0.1:8091"},
|
{username,"Administrator"},
|
{password,"*****"}]]},
|
GoXDCR has moved towards using the metakv store, which is also in the ns_server config, however we have now lost the ability to list the remote clusters being used for XDCR.
Example:
{{metakv,<<"/remoteCluster/vt7TuZ9OHBkkiUtbdG5bfk20_IlmryW72LgpY2blDng=">>},
|
[{'_vclock',
|
[{<<"23b590c43dfa2f61a228e3e3d808d0eb">>,{20,63638582071}},
|
{<<"5ec93adf8367bbdfcb8aee1c8f683a04">>,{1,63630721104}},
|
{<<"6bfee12f372bda70c782bacf03fbc9fe">>,{9,63634945427}},
|
{<<"6c9f6e29cde702d5e4b72101cd8370f6">>,{3,63636666072}},
|
{<<"7de49a6dddee70b3e22616ce63883398">>,{11,63638784002}},
|
{<<"8e0986538fbc95700fd14d3c02eddc49">>,{19,63637381302}},
|
{<<"a254590537456c13bad550e3c7e6ddc5">>,{5,63637574400}},
|
{<<"a3b6e0fb1a4a099fbaca81794ba34d45">>,{5,63638697609}},
|
{<<"a43e59ebd4b36c0ba7a39085d937c899">>,{9,63638611204}}]}|
|
{metakv_sensitive,<<"*****">>}]},
|
To someone reviewing the logs this means nothing, what does the base64 encoded string signify? Can we make use of this?
This is a real pain point for support as we have no real idea what clusters customers are replication to via XDCR on 4.x+.
My request is that the ability to obtain the reference name and cluster hostname for a given GoXDCR replication is added to cbcollect_info using whatever method is deemed suitable.
Apologies if this is not within the realm of GoXDCR itself (perhaps something has to change on the ns_server side), feel free to reassign as necessary.