GBase 8a多实例版本9.5.3环境变量改动

GBase 8a 在V9.5.3版本支持了多实例,可以在一台机器上的多个IP,部署多个计算节点来充分利用CPU,内存等资源。区别于之前版本环境变量统一放在dbaUser下的.gbase_profile,这个版本有了一些改动。

整体看,953由于多实例,且将gcware,coordinator和node分成为管理、调度和计算三个各自独立的集群,可以各自部署到不同的机器上,所以老版本dbaUser统一的环境参数 .gbase_profile,改到了各个IP对应目录下的gbase_profile文件里。并根据具体服务,设置对应参数。

我们先看一下,非多实例版本的环境参数。

952的dbaUser

cat[root@gbase_rh7_001 ~]# cat /home/gbase/.gbase_profile
export GBASE_BASE=/opt/gbase/gnode
export GBASE_HOME=/opt/gbase/gnode/server
export GBASE_SID=gbase
export GCLUSTER_BASE=/opt/gbase/gcluster
export GCLUSTER_HOME=/opt/gbase/gcluster/server
export GCLUSTER_SID=gcluster
export GCWARE_BASE=/opt/gbase/gcware
export GCLUSTER_USER=gbase
export GCLUSTER_GROUP=gbase
export SSH_GBASE_PASSWD=676261736531323334
PATH=$GCWARE_BASE/bin:$GCWARE_BASE/sbin:$GCLUSTER_HOME/bin:$GBASE_HOME/bin:$PATH
export PYTHONPATH=$PYTHONPATH:$GCWARE_BASE/python
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GCWARE_BASE/lib64:$GCLUSTER_HOME/lib/gbase/:$GBASE_HOME/lib/gbase/:$GBASE_HOME/lib/gbase/plugin/gbfti/lib:$GBASE_HOME/lib/gbase/plugin/gbfti:$GCLUSTER_HOME/lib/gbase/plugin:$GCLUSTER_HOME/lib/gbase/plugin/gbfti:$GCLUSTER_HOME/lib/gbase/plugin/gbfti/lib
export TCMALLOC_AGGRESSIVE_DECOMMIT=1
ulimit -v unlimited
unset TERMINFO
export TERMINFO_DIRS=/opt/gbase/gcluster/server/share/terminfo:/opt/gbase/gnode/server/share/terminfo:/usr/share/terminfo

953的dbaUser

[gbase@gbase_rh7_003 10.0.2.103]$ cat /home/gbase/.gbase_profile
export GBASE_INSTANCES_BASE=/opt/gbase
export GBASE_INSTANCES=/opt/gbase/10.0.2.103/gbase_profile
export GBASE_HOME=/opt/gbase/10.0.2.103/gnode/server
PATH=$GBASE_HOME/bin:$PATH

if [ -f /opt/gbase/10.0.2.103/gbase_profile ]; then
  . /opt/gbase/10.0.2.103/gbase_profile
fi

if [ -f /opt/gbase/10.0.2.103/gcware_profile ]; then
  . /opt/gbase/10.0.2.103/gcware_profile
fi
export GBASE_INSTANCES=/opt/gbase/10.0.2.105/gbase_profile:$GBASE_INSTANCES
export GBASE_HOME=/opt/gbase/10.0.2.105/gnode/server
PATH=$GBASE_HOME/bin:$PATH
export GBASE_INSTANCES=/opt/gbase/10.0.2.104/gbase_profile:$GBASE_INSTANCES
export GBASE_HOME=/opt/gbase/10.0.2.104/gnode/server
PATH=$GBASE_HOME/bin:$PATH
[gbase@gbase_rh7_003 10.0.2.103]$ 

调度节点IP下的gbase_profile

注意文件名前面没有符号:点

[gbase@gbase_rh7_003 10.0.2.103]$ cat gbase_profile
export GBASE_SID=gbase
export GCLUSTER_USER=gbase
export TCMALLOC_AGGRESSIVE_DECOMMIT=1
ulimit -v unlimited
unset TERMINFO
export TERMINFO_DIRS=/opt/gbase/10.0.2.103/gcluster/server/share/terminfo:/opt/gbase/10.0.2.103/gnode/server/share/terminfo
export GCLUSTER_PREFIX=/opt/gbase/10.0.2.103
export GCWARE_BASE=/opt/gbase/10.0.2.103/gcware
export PYTHONPATH=$PYTHONPATH:$GCWARE_BASE/python
export GBASE_BASE=/opt/gbase/10.0.2.103/gnode
export GBASE_HOME=/opt/gbase/10.0.2.103/gnode/server
export SSH_GBASE_PASSWD=676261736531323334
export GCLUSTER_HOME=/opt/gbase/10.0.2.103/gcluster/server
export GCLUSTER_BASE=/opt/gbase/10.0.2.103/gcluster
export GCLUSTER_SID=gcluster
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GCWARE_BASE/lib64:$GCLUSTER_HOME/lib/gbase/:$GBASE_HOME/lib/gbase/:$GBASE_HOME/lib/gbase/plugin/gbfti/lib:$GBASE_HOME/lib/gbase/plugin/gbfti:$GCLUSTER_HOME/lib/gbase/plugin:$GCLUSTER_HOME/lib/gbase/plugin/gbfti:$GCLUSTER_HOME/lib/gbase/plugin/gbfti/lib
PATH=$GBASE_HOME/bin:$GCWARE_BASE/bin:$GCWARE_BASE/sbin:$GCLUSTER_HOME/bin:$PATH

纯数据节点IP下的

[gbase@gbase_rh7_003 10.0.2.103]$ cat ../10.0.2.104/gbase_profile
export GBASE_SID=gbase
export GBASE_BASE=/opt/gbase/10.0.2.104/gnode
export GBASE_HOME=/opt/gbase/10.0.2.104/gnode/server
export SSH_GBASE_PASSWD=676261736531323334
export GCLUSTER_HOME=/opt/gbase/10.0.2.104/gcluster/server
export GCLUSTER_BASE=/opt/gbase/10.0.2.104/gcluster
export GCLUSTER_SID=gcluster
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GCWARE_BASE/lib64:$GCLUSTER_HOME/lib/gbase/:$GBASE_HOME/lib/gbase/:$GBASE_HOME/lib/gbase/plugin/gbfti/lib:$GBASE_HOME/lib/gbase/plugin/gbfti:$GCLUSTER_HOME/lib/gbase/plugin:$GCLUSTER_HOME/lib/gbase/plugin/gbfti:$GCLUSTER_HOME/lib/gbase/plugin/gbfti/lib
PATH=$GBASE_HOME/bin:$GCWARE_BASE/bin:$GCWARE_BASE/sbin:$GCLUSTER_HOME/bin:$PATH

对比结果

参数9.5.3计算9.5.3管理+调度+计算9.5.2 dbaUser9.5.3 dbaUser
GBASE_INSTANCES_BASE   /opt/gbase
GBASE_INSTANCES   /opt/gbase/10.0.2.104/gbase_profile:/opt/gbase/10.0.2.105/gbase_profile:/opt/gbase/10.0.2.103/gbase_profile
GBASE_HOME/opt/gbase/10.0.2.104/gnode/server/opt/gbase/10.0.2.103/gnode/server/opt/gbase/gnode/server/opt/gbase/10.0.2.104/gnode/server
PATHXXXXXXXXXXXX$GCWARE_BASE/bin:$GCWARE_BASE/sbin:$GCLUSTER_HOME/bin:$GBASE_HOME/bin:$PATHXXXXX
GBASE_BASE/opt/gbase/10.0.2.104/gnode/opt/gbase/10.0.2.103/gnode/opt/gbase/gnode 
GBASE_SIDgbasegbasegbase 
GCLUSTER_BASE/opt/gbase/10.0.2.104/gcluster/opt/gbase/10.0.2.103/gcluster/opt/gbase/gcluster 
GCLUSTER_HOME/opt/gbase/10.0.2.104/gcluster/server/opt/gbase/10.0.2.103/gcluster/server/opt/gbase/gcluster/server 
GCLUSTER_SIDgclustergclustergcluster 
GCWARE_BASE /opt/gbase/10.0.2.103/gcware/opt/gbase/gcware 
GCLUSTER_USER gbasegbase 
GCLUSTER_GROUP  gbase 
SSH_GBASE_PASSWD676261736531323000676261736531323000676261736531323000 
PYTHONPATH $PYTHONPATH:$GCWARE_BASE/python$PYTHONPATH:$GCWARE_BASE/python 
LD_LIBRARY_PATHXXXXXXXXXXXXXXXX 
TCMALLOC_AGGRESSIVE_DECOMMIT 11 
ulimit -v unlimited-v unlimited 
unset TERMINFOTERMINFO 
TERMINFO_DIRS XXXXXXXXX 
GCLUSTER_PREFIX /opt/gbase/10.0.2.103  

953新增变量

GBASE_INSTANCES_BASE = /opt/gbase

GBASE_INSTANCES = /opt/gbase/10.0.2.104/gbase_profile:/opt/gbase/10.0.2.105/gbase_profile:/opt/gbase/10.0.2.103/gbase_profile

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注