Aliaksey,
I've made request to /pools/default?waitChanges=1, but there was no needed
tags:
{"storageTotals":{"ram":{"total":8370765824,"quotaTotal":2097152000,"quotaUsed":943718400,"used":8125919232,"usedByData":227849904},"hdd":{"total":8214605824,"quotaTotal":8214605824,"used":3860864737,"usedByData":308924723,"free":4353741087}},"serverGroupsUri":"/pools/default/serverGroups?v=86125166","name":"default","alerts":[],"alertsSilenceURL":"/controller/resetAlerts?token=12&uuid=ef10ed62de143e50ece7287a6f0d63e6","nodes":[{"systemStats":{"cpu_utilization_rate":99.01960784313725,"swap_total":2147475456,"swap_used":12288,"mem_total":8370765824,"mem_free":5004042240},"interestingStats":{"cmd_get":0,"couch_docs_actual_disk_size":308924723,"couch_docs_data_size":307634512,"couch_views_actual_disk_size":0,"couch_views_data_size":0,"curr_items":12057,"curr_items_tot":12057,"ep_bg_fetched":0,"get_hits":0,"mem_used":227849904,"ops":0,"vb_replica_curr_items":0},"uptime":"2330967","memoryTotal":8370765824,"memoryFree":5004042240,"mcdMemoryReserved":6386,"mcdMemoryAllocated":6386,"couchApiBase":"http://172.20.1.59:8092/","otpCookie":"hrcxcabldbpdbzdl","clusterMembership":"active","status":"healthy","otpNode":"[email protected]","thisNode":true,"hostname":"172.20.1.59:8091","clusterCompatibility":131077,"version":"2.5.1-1083-rel-enterprise","os":"x86_64-unknown-linux-gnu","ports":{"httpsMgmt":18091,"httpsCAPI":18092,"sslProxy":11214,"proxy":11211,"direct":11210}}],"buckets":{"uri":"/pools/default/buckets?v=49808852&uuid=ef10ed62de143e50ece7287a6f0d63e6","terseBucketsBase":"/pools/default/b/","terseStreamingBucketsBase":"/pools/default/bs/"},"remoteClusters":{"uri":"/pools/default/remoteClusters?uuid=ef10ed62de143e50ece7287a6f0d63e6","validateURI":"/pools/default/remoteClusters?just_validate=1"},"controllers":{"addNode":{"uri":"/controller/addNode?uuid=ef10ed62de143e50ece7287a6f0d63e6"},"rebalance":{"uri":"/controller/rebalance?uuid=ef10ed62de143e50ece7287a6f0d63e6"},"failOver":{"uri":"/controller/failOver?uuid=ef10ed62de143e50ece7287a6f0d63e6"},"reAddNode":{"uri":"/controller/reAddNode?uuid=ef10ed62de143e50ece7287a6f0d63e6"},"ejectNode":{"uri":"/controller/ejectNode?uuid=ef10ed62de143e50ece7287a6f0d63e6"},"setAutoCompaction":{"uri":"/controller/setAutoCompaction?uuid=ef10ed62de143e50ece7287a6f0d63e6","validateURI":"/controller/setAutoCompaction?just_validate=1"},"replication":{"createURI":"/controller/createReplication?uuid=ef10ed62de143e50ece7287a6f0d63e6","validateURI":"/controller/createReplication?just_validate=1"},"setFastWarmup":{"uri":"/controller/setFastWarmup?uuid=ef10ed62de143e50ece7287a6f0d63e6","validateURI":"/controller/setFastWarmup?just_validate=1"}},"rebalanceStatus":"none","rebalanceProgressUri":"/pools/default/rebalanceProgress","stopRebalanceUri":"/controller/stopRebalance?uuid=ef10ed62de143e50ece7287a6f0d63e6","nodeStatusesUri":"/nodeStatuses","maxBucketCount":30,"autoCompactionSettings":{"parallelDBAndViewCompaction":false,"databaseFragmentationThreshold":{"percentage":30,"size":"undefined"},"viewFragmentationThreshold":{"percentage":30,"size":"undefined"}},"fastWarmupSettings":{"fastWarmupEnabled":true,"minMemoryThreshold":10,"minItemsThreshold":10},"tasks":{"uri":"/pools/default/tasks?v=133172395"},"counters":{"rebalance_success":351,"rebalance_start":464,"failover_node":26,"rebalance_stop":7,"rebalance_fail":106}}
On Wednesday, May 21, 2014 10:25:00 AM UTC+4, Haster wrote:
>
> Aliaksey, thanks a lot for reply! It is very helpful =)
>
> On Tuesday, May 20, 2014 9:46:26 PM UTC+4, Aliaksey Kandratsenka wrote:
>>
>>
>> They have been hidden.
>>
>> The story behind this is that unfortunately well back in the day we made
>> mistake of conflating rest endpoints used by sdk clients and rest endpoints
>> used for cluster management/monitoring (i.e. by ui or people's scripts).
>>
>> And the price is that some sdk clients still do /pools/default as part of
>> bootstrap and every time they do it server has to send them all that "junk"
>> that's only needed for cluster management/monitoring. Including stats,
>> balanced flag etc.
>>
>> So as part of 2.2 I tried to remove all fields that I could from
>> /pools/default and expose them only if UI is asking. All of those removed
>> fields were never publicly documented so they were never part of official,
>> stable, "promised" API.
>>
>> But notably UI still needs those two fields that you mention above. And
>> simple way to get them back is to do /pools/default?waitChanges=1 instead
>> of just /pools/default. Note however that it puts your script into
>> territory of non-public and "to be changed without notice" APIs, which is
>> arguably the case already anyways.
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.