amoeba mysql下载_amoeba for mysql
安裝 amoeba for ?mysql
對于amoeba 的安裝是相當簡單的,基本上沒什么安裝的,
只需要解壓文件,然后設置下環境變量就行了
vi /etc/profile
export amoeba_home01=/home/software/amoeba-mysql-3.0.5-RC
export PATH=$PATH:$amoeba_home01/bin
添加完環境變量周 執行 source /etc/profile 是環境變量立即生效
以上是在linux上的操作 ?,如果是window平臺 ,
將 /amoeba-mysql-3.0.5-RC/bin路徑添加在path環境變量就中行了
配置amoeba.xml ?(讀寫分離)
在 節點中重點關注下port,IP,UserName ,Password
6666
192.168.53.41
root
Welcome@123
節點connectionManagerList 可以不用管 ,默認就行
com.meidusa.amoeba.net.AuthingableConnectionManager
節點dbServerList 用來設置真實的mysql主機信息
defaultManager
3306
192.168.53.63
db_vip_act
root
Welcome@456
200
200
10
600000
600000
true
true
defaultManager
3306
192.168.53.60
db_vip_act
root
Welcome@456
200
200
10
600000
600000
true
true
1
slave
這個里面重點講下 節點multiPool
這個節點主要用來將多個主機配置成一個集群的,
如果有多個slave主機,可以將以下節點配置成
slave1,slave2,slave3,
表示就slave1,salve2,slave3配置成一個集群,當有請求發送到到multiPool 池的時候,
會按照一定的順序分別轉發到相應的slave
在有的版本中對dbServer的設置單獨放置在另外一個dbServers.xml的文件中
然后在 amoeba.xml文件中引用 ? dbServers.xml 文件中
下面的代碼是 amoeba.xml中的部分代碼
${amoeba.home}/conf/dbServers.xml # 引用外部dbServers.xml文件
最后就是配置路由功能了
${amoeba.home}/conf/rule.xml
${amoeba.home}/conf/functionMap.xml
${amoeba.home}/conf/ruleFunctionMap.xml
1500
master #非讀寫操作轉發到master
master #寫(insert/update/delete)操作被轉發到主機master
multiPool # 讀(select)操作轉發到multiPool集群
true
通過以上的設置 ,一個簡單的讀寫分離架構就搭建成功了
啟動amoeba,
amoena的可執行文件放在amoeba-mysql-3.0.5-RC/bin下,執行一下可執行文件就可以開啟amoeba。
開啟之后程序就會在后臺運行
版本不同,amoeba的可執行文件名有所不同有的launcher 有的amoeba
在amoeba-mysql-3.0.5-RC/bin 下有兩個相似的可執行問文件
-rwxr-xr-x. 1 root root ?2114 Jul ?5 ?2013 launcher
-rwxr-xr-x. 1 root root ?1579 Dec 27 ?2012 launcher.bat
在window平臺launcher.bat執行就可以開啟amoeba
在linux平臺上執行launcher就可以開啟amoeba
amoeba的使用手冊:
總結
以上是生活随笔為你收集整理的amoeba mysql下载_amoeba for mysql的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python counter函数_Pyt
- 下一篇: MySQL怎么打开explain_MyS