{"id":1174,"date":"2017-05-17T14:56:53","date_gmt":"2017-05-17T22:56:53","guid":{"rendered":"http:\/\/www.developerscloset.com\/?page_id=1174"},"modified":"2018-05-18T10:17:10","modified_gmt":"2018-05-18T18:17:10","slug":"couchbase","status":"publish","type":"page","link":"https:\/\/www.developerscloset.com\/?page_id=1174","title":{"rendered":"Couchbase"},"content":{"rendered":"<p><a href=\"http:\/\/www.developerscloset.com\/wp-content\/uploads\/2018\/05\/couchbase-logo-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1177 alignnone\" src=\"http:\/\/www.developerscloset.com\/wp-content\/uploads\/2018\/05\/couchbase-logo-1-300x78.png\" alt=\"\" width=\"377\" height=\"98\" srcset=\"https:\/\/www.developerscloset.com\/wp-content\/uploads\/2018\/05\/couchbase-logo-1-300x78.png 300w, https:\/\/www.developerscloset.com\/wp-content\/uploads\/2018\/05\/couchbase-logo-1.png 617w\" sizes=\"auto, (max-width: 377px) 100vw, 377px\" \/><\/a><\/p>\n<p>Couchbase Server is a NoSQL database, designed with a distributed architecture for performance, scalability, and availability. Couchbase enables developers to build applications easier and faster by leveraging the power of SQL with the flexibility of JSON. Deploy Couchbase Server as a Document database to access, index, and query documents while taking advantage of integrated caching for high-performance data access. Couchbase can also be deployed as a key-value store to meet high-performance requirements for read and write data access while maintaining durability and availability. Couchbase can also be deployed as a distributed cache to provide scalable, low-latency access to large in-memory data sets, optionally via the memcache API and clients.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ea22772de26\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ea22772de26\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.developerscloset.com\/?page_id=1174\/#Configuration\" >Configuration<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.developerscloset.com\/?page_id=1174\/#Limitations_on_Number_of_Couchbase_Buckets\" >Limitations on Number of Couchbase Buckets<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.developerscloset.com\/?page_id=1174\/#Cloudera_Navigator_Key_Trustee_Server\" >Cloudera Navigator Key Trustee Server<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.developerscloset.com\/?page_id=1174\/#Administration\" >Administration<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.developerscloset.com\/?page_id=1174\/#Create_Primary_Index\" >Create Primary Index<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.developerscloset.com\/?page_id=1174\/#Query_Couchbase_using_Query_Explorer\" >Query Couchbase using Query Explorer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.developerscloset.com\/?page_id=1174\/#Support_Options\" >Support Options<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1 id=\"Couchbase-Configuration\"><span class=\"ez-toc-section\" id=\"Configuration\"><\/span>Configuration<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>port: 8091 (used for the web console REST API)<\/p>\n<p>port: 8093 (used for the query service REST API)<\/p>\n<h2 id=\"Couchbase-LimitationsonNumberofCouchbaseBuckets\"><span class=\"ez-toc-section\" id=\"Limitations_on_Number_of_Couchbase_Buckets\"><\/span>Limitations on Number of Couchbase Buckets<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Based on some experiments others have run, we learned that if you want more than 10 Buckets (or change the value), you will need to do this before building a cluster. If not, you will end up with out-of-range errors. Since we have already built our clusters we would need to rebuild our existing cluster\/vbuckets.<\/p>\n<p>From what I read, increasing the number of vBuckets is NOT a supported scenario from Couchbase (even though you can). If we increase the number and have issues, we will be on our own\u2026they will not support us. Increasing the max vBuckets has a significant impact on overall performance, I\/O and memory usage. Each vBucket is split into 1024 partitions between our 3 nodes (342 buckets per machine X # of vBuckets). This means that with a 10 max vBucket default setting, we will have 3420 partitions per machine at are all asynchronously threaded and managed. Since the load on the systems will increase, we would have to manage\/configure each vBucket (data\/index\/query) to be on separate physical storage (if we want to do something to improve the impact on performance).<\/p>\n<p>I do not recommend that we go down this path (if we can avoid it). It may be a significant cost to OTE to initially reconfigure all Couchbase cluster and ensure\/manage performance. It also means that the 3 host machines will need to be fully (or near fully) dedicated to Couchbase. This means that we will have to rebalance all the VMs and take the 3 hosts out of the Windows cluster, so that there is no failover possible for the Couchbase VMs.<\/p>\n<h2 id=\"Couchbase-ClouderaNavigatorKeyTrusteeServer\"><span class=\"ez-toc-section\" id=\"Cloudera_Navigator_Key_Trustee_Server\"><\/span>Cloudera Navigator Key Trustee Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a class=\"external-link\" href=\"https:\/\/www.cloudera.com\/documentation\/enterprise\/5-5-x\/topics\/sg_hdfs_encryption_wizard.html#concept_ucw_lfr_wt\" rel=\"nofollow\">https:\/\/www.cloudera.com\/documentation\/enterprise\/5-5-x\/topics\/sg_hdfs_encryption_wizard.html#concept_ucw_lfr_wt<\/a><\/p>\n<h1><span class=\"ez-toc-section\" id=\"Administration\"><\/span>Administration<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2 id=\"Couchbase-CreatePrimaryIndex:\"><span class=\"ez-toc-section\" id=\"Create_Primary_Index\"><\/span><strong>Create Primary Index<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>CREATE PRIMARY INDEX index_name\u00a0On BucketName\u00a0 USING VIEW<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"Couchbase-QueryCouchbaseusingQueryExplorer:\"><span class=\"ez-toc-section\" id=\"Query_Couchbase_using_Query_Explorer\"><\/span>Query Couchbase using Query Explorer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Copy the Couchbase workbench to local drive: couchbase-query-workbench_dp3-windows_amd64<\/li>\n<li>Update the production couchbase uri\u00a0 in launch-cbq-gui.bat file<br \/>\nFor example set COUCHBASE_URL=http:\/\/couchbase.servername01:8091<\/li>\n<li>Save the batch file.<\/li>\n<li>Run the batch file from command line which will provide the local url to access.<\/li>\n<li>Copy the url and paste in browser.<\/li>\n<\/ul>\n<h2 id=\"Couchbase-SupportOptions\"><span class=\"ez-toc-section\" id=\"Support_Options\"><\/span>Support Options<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Couchbase CE is free, for EE three levels of support are available:<\/p>\n<ul>\n<li>Platinum: 24&#215;7 Support with 30min SLA, $15,500\/node\/year<\/li>\n<li>Gold: 24&#215;7 Support with 2hrs SLA, $9,900\/node\/year<\/li>\n<li>Silver: Business-day only Support (7am-5pm business hrs) with 5-10hrs SLA, $5,600\/node\/year<\/li>\n<\/ul>\n<p>Couchbase only recommends Gold and Platinum for production. Silver is only recommended for non-prod environments or non-mission critical apps, it does not include support at night or on weekends and it&#8217;s capped at 5nodes\/cluster.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Couchbase Server is a NoSQL database, designed with a distributed architecture for performance, scalability, and availability. Couchbase enables developers to build applications easier and faster [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-1174","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/P1BQ8S-iW","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.developerscloset.com\/index.php?rest_route=\/wp\/v2\/pages\/1174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.developerscloset.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.developerscloset.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.developerscloset.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.developerscloset.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1174"}],"version-history":[{"count":2,"href":"https:\/\/www.developerscloset.com\/index.php?rest_route=\/wp\/v2\/pages\/1174\/revisions"}],"predecessor-version":[{"id":1178,"href":"https:\/\/www.developerscloset.com\/index.php?rest_route=\/wp\/v2\/pages\/1174\/revisions\/1178"}],"wp:attachment":[{"href":"https:\/\/www.developerscloset.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}