couchbase 3.x 官方文档地址
一、基础简介
1、couchbase 跨平台约束:
Scenario | Implementation | Compatibility |
---|---|---|
Standalone cluster | Cluster A with 4 nodes all Linux OR all Windows | OK |
Standalone cluster | Cluster A with 2 nodes Linux AND 2 nodes Windows | NOT OK |
Separate discreet clusters | Cluster A = Linux, Cluster B = Windows | OK |
Replicating clusters | Cluster A = Linux with XDCR to Cluster B = Linux | OK |
Replicating clusters | Cluster A = Windows with XDCR to Cluster B = Linux | NOT OK |
3、不同平台之间数据备份 恢复
Couchbase clusters on mixed platforms are not supported. Specifically, Couchbase Server on Mac OS X uses 64 vBuckets as opposed to the 1024 vBuckets used by other platforms. Due to this difference, if you need to move data between a Mac OS X cluster and a cluster hosted on another platform use cbbackup and cbrestore.
4、更改默认端口
1) /opt/couchbase/etc/couchbase/static_config
2){rest_port, 9000} 8091 Web administration port
{mccouch_port, 8999} 11213 Default value for mccouch
{memcached_port, 12000} 11211 Client interface (proxy) {memcached_dedicated_port, 11999} 11211 Client interface (proxy) {moxi_port, 12001} 11210 Internal/external bucket port {ssl_rest_port,11000} 18091 Internal REST HTTPS for SSL
{ssl_capi_port,11001} 18092 Internal CAPI HTTPS for SSL {ssl_proxy_downstream_port,11002} 11214 Incoming SSL proxy {ssl_proxy_upstream_port,11003} 11215 Internal outgoing SSL proxy
{mccouch_port, 8999} 11213 Default value for mccouch
{memcached_port, 12000} 11211 Client interface (proxy) {memcached_dedicated_port, 11999} 11211 Client interface (proxy) {moxi_port, 12001} 11210 Internal/external bucket port {ssl_rest_port,11000} 18091 Internal REST HTTPS for SSL
{ssl_capi_port,11001} 18092 Internal CAPI HTTPS for SSL {ssl_proxy_downstream_port,11002} 11214 Incoming SSL proxy {ssl_proxy_upstream_port,11003} 11215 Internal outgoing SSL proxy
3)delete the opt/couchbase/var/lib/couchbase/config/config.dat
4)Start Couchbase Server
.
5、centos 6 下安装
yum install -y pkgconfig
yum install openssl098e
wget https://packages.couchbase.com/releases/3.0.1/couchbase-server-community-3.0.1-centos6.x86_64.rpm
rpm --install couchbase-server-community-3.0.1-centos6.x86_64.rpm
6、
Limits
Couchbase Server limits and limitations may effect server usage and implementation.
Limit | Value |
---|---|
Max key length | 250 bytes |
Max value size | 20 MB |
Max bucket size | unlimited |
Max Buckets per Cluster | Default is 10 (can be adjusted by users) |
Max View Key Size | 4096 bytes |
1、vbuckets 原理
========================================================
注意事项:
集群bucket nodes 节点数量上去后,面临rebalance 失败几率变大的问题;
期中3.0.x 版本已知的问题有 https://github.com/brianshumate/snippets/blob/master/share/couchbase-server/README.md
Detect Stuck vBuckets
Credit: Brent Woodruff
In some 3.x versions, a rebalance operation can hang due to stuck vBuckets. The following awk
script can help identify them:
cd /opt/couchbase/var/lib/couchbase/logs for file in $(ls -tr memcached.log.*); do cat "$file"; done | awk -f /path/to/stuck_vbuckets.awk done
解决方法: bucket切换到备集群,清除有问题的bucket 在进行rebalance;
注意
1、建议关闭系统 abrtd工具,couchbase异常crash 会触发abrt 进行core dump 而由于couchbase 内存占使用很高,会瞬间导致IO很高,cpu占用 上去;导致节点直接失去响应;
2、couchase安装默认路径 更改至 /data2 数据盘,避免系统盘,防止IO过高;同时data与索引分盘放;
pills without a doctor prescription <a href=" https://genericwdp.com/# ">india pharmacy mail order</a>
buying prescription drugs from canada: https://genericwdp.com/ generic drugs without doctor's prescription
<a href=https://genericwdp.com/#>buy prescription drugs online without</a> cheap generic drugs from india