巨衫數據庫SequoiaDB是一款金融級分佈數關係型數據庫,主要面對高併發OLTP場景提供高性能、可靠性穩定以及無限水平擴展的數據庫服務。用戶可在SequoiaDB巨衫數據庫中創建多種類型的數據庫實例(支持MYSQL、PostgreSQL、SparkSQL三種關係型數據庫實例,類MongoDB的Json文檔型數據庫實例、以及S#對象存儲與Posix文件系統的非結構化數據庫實例),以滿足上層不同應用程序各自的需求。本篇主要對巨衫數據庫的可視化安裝進行分享。
1 軟件環境
- Oracle Linux 6.9
- Sequoia DB 3.4
2 系統配置
2.1 硬件要求
需求項 |
要求 |
建議 |
CPU |
- x86(Intel Pentium、Intel Xeon和AMD)32位Intel和AMD處理器 - 64(64位AMD64和Intel EMT處理器) - PowerPC 7或者PowerPC 7+處理器 |
建議採用X64(64位AMD64和Intel EM64T處理器)或PowerPC處理器 |
磁盤 |
至少20GB空間 |
建議大於100GB磁盤空間 |
內存 |
至少1GB |
大於2GB物理內存 |
網卡 |
配備至少1張網卡 |
建議至少配置1Gb網卡 |
2.2 受支持的操作系統
系統類型 |
系統列表 |
Linux |
- Red Hat Enterprise Linux (RHEL) 6 - Red Hat Enterprise Linux (RHEL) 7 - SUSE Linux Enterprise Server (SLES) 11 Service Pack 1 - SUSE Linux Enterprise Server (SLES) 11 Service Pack 2 - SUSE Linux Enterprise Server (SLES) 12 Service Pack 1 - Ubuntu 12.x - Ubuntu 14.x - Ubuntu 16.x - CentOS 6.x - CentOS 7.x |
未在上述列表中列舉的Linux操作系統不代表不能用於安裝Sequoia DB。
2.3 軟件要求
在安裝Sequoia之前,應先對Linux系統相關的配置進行檢查和設置,包括:
- 配置主機名
- 配置主機名/IP地址映射
- 配置防火牆
2.3.1 配置主機名
[root@strong ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=sdbserver1
[root@strong ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.101 sdbserver1
192.168.56.102 sdbserver2
192.168.56.103 sdbserver3
2.3.2 配置防火牆
[root@strong ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[root@strong ~]# chkconfig iptables off
[root@strong ~]# vim /etc/selinux/config
SELINUX=disabled
2.3.3 調整ulimit參數
[root@strong ~]# vim /etc/security/limits.conf
* soft core 0
* soft data unlimited
* soft fsize unlimited
* soft rss unlimited
* soft as unlimited
參數說明:
- core:數據庫出現故障時產生core文件用於故障診斷,生產建議關閉;
- data:數據庫進程所允許分配的數據內存大小;
- fsize:數據庫進程所允許尋址的文件大小;
- rss:數據庫進程所允許的最大resident set大小;
- as:數據庫進程所允許最大虛擬內存尋址空間限制;
[root@strong ~]# vim /etc/security/limits.d/90-nproc.conf
* soft nproc unlimited
參數說明:
- 數據庫所允許的最大線程數限制;
2.3.4 調整內核參數
[root@strong ~]# vim /etc/sysctl.conf
vm.swappiness = 0
vm.dirty_ratio = 100
vm.dirty_background_ratio = 40
vm.dirty_expire_centisecs = 3000
vm.vfs_cache_pressure = 200
vm.min_free_kbytes = 7492
vm.overcommit_memory = 2
vm.overcommit_ratio = 85
[root@strong ~]# sysctl -p
3 軟件安裝
3.1 下載Sequoia DB安裝軟件
下載地址:SequoiaDB巨衫數據庫
3.2 安裝詳細步驟
1)上傳並解壓縮安裝軟件
[root@strong ~]# tar -zxvf sequoiadb-3.4-linux_x86_64.tar.gz
sequoiadb-3.4/
sequoiadb-3.4/setup.sh
sequoiadb-3.4/unset.sh
sequoiadb-3.4/sequoiasql-mysql-3.4-linux_x86_64-installer.run
sequoiadb-3.4/readme.txt
sequoiadb-3.4/sequoiasql-postgresql-3.4-x86_64-installer.run
sequoiadb-3.4/sequoiadb-3.4-linux_x86_64-installer.run
[root@strong ~]# cd sequoiadb-3.4
[root@strong sequoiadb-3.4]# ll
total 853568
-rwxrwxrwx. 1 nobody nfsnobody 1104 Jul 27 2019 readme.txt
-rw-r--r--. 1 root root 756098844 Nov 15 00:19 sequoiadb-3.4-linux_x86_64-installer.run
-rw-r--r--. 1 root root 104758705 Nov 15 00:19 sequoiasql-mysql-3.4-linux_x86_64-installer.run
-rw-r--r--. 1 root root 13176565 Nov 15 00:20 sequoiasql-postgresql-3.4-x86_64-installer.run
-rwxrwxrwx. 1 nobody nfsnobody 3861 Jul 2 2019 setup.sh
-rwxrwxrwx. 1 nobody nfsnobody 5828 Jul 2 2019 unset.sh
2)運行安裝程序
[root@sdbserver1 sequoiadb-3.4]# ./sequoiadb-3.4-linux_x86_64-installer.run --SMS true
3)設置頁面,點擊Forward
4)License協議,選擇接受,點擊Forward
5)安裝目錄默認
6)默認,點擊Forward
7)配置用戶信息,sdbadmin密碼默認爲sdbadmin
8)集羣管理服務端口端口配置,默認爲11790
9)配置相關進程開機啓動
10)準備進行安裝
11)安裝進度顯示
12)安裝完成
安裝完成後,OM會自動啓動並開啓8000端口的web服務,可以通過瀏覽器登陸SAC,並進行集羣部署。
13)登錄SAC,用戶名默認admin,初始密碼admin
14)登錄後界面
到此,SequoiaDB服務器安裝完成,後面將繼續分享一鍵部署。