ivaneeo's blog自由的力量,自由的生活。 |
http://dev.mysql.com/doc/refman/5.1/en/create-tablespace.html
http://dev.mysql.com/doc/refman/5.1/en/mysql-cluster-disk-data-objects.html
5.1.37-ndb-7.0.8a-cluster-gpl MySQL Cluster Server (GPL)
create a table with tablespace set. * tablespace creation * CREATE TABLESPACE ts_1 ADD DATAFILE '/home/db/mysql-cluster/data/data_1.dat' USE LOGFILE GROUP lg_1 INITIAL_SIZE = 26843545600 ENGINE NDB; ALTER TABLESPACE ts_1 ADD DATAFILE '/home/db/mysql-cluster/data/data_2.dat' INITIAL_SIZE 26843545600 ENGINE NDB; ALTER TABLESPACE ts_1 ADD DATAFILE '/home/db/mysql-cluster/data/data_3.dat' INITIAL_SIZE 26843545600 ENGINE NDB; ALTER TABLESPACE ts_1 ADD DATAFILE '/home/db/mysql-cluster/data/data_4.dat' INITIAL_SIZE 26843545600 ENGINE NDB; * table creation * CREATE TABLE `TABLE` ( `A` date NOT NULL, `B` varchar(30) NOT NULL, `C` varchar(50) NOT NULL, `D` varchar(50) NOT NULL, `E` varchar(50) NOT NULL, `F` varchar(255) DEFAULT NULL ) TABLESPACE ts_1 STORAGE DISK ENGINE=ndbcluster DEFAULT CHARSET=utf8 PK, index generated without the table and insert the data(40G), I'm Using logs as the following index numbers are still high. (mgm log) The actual number of memory ndb also giving you an upward trend ... Why? 2009-11-17 16:54:58 [MgmtSrvr] INFO -- Node 8: Index usage is 4%(30707 8K pages of total 655392) 2009-11-17 16:55:25 [MgmtSrvr] INFO -- Node 8: Data usage is 8%(20603 32K pages of total 229376) 1,不支持創(chuàng)建臨時(shí)表(temporary tables); 2,創(chuàng)建索引和鍵的限制: (1),在列上創(chuàng)建索引長度超過3072bytes會(huì)成功,但是只能使用索引的前3072bytes。并且會(huì)顯示警告信息"specified key was too long,max key lenght is 3072 keys"
不支持的特征 1,在NDB創(chuàng)建create table時(shí),一定要指定tablespace. For NDB tables, beginning with MySQL Cluster NDB 6.2.5 and MySQL Cluster NDB 6.3.2, it is also possible to specify whether the column is stored on disk or in memory by using a STORAGE clause. STORAGE DISK causes the column to be stored on disk, and STORAGE MEMORY causes in-memory storage to be used. The CREATE TABLE statement used must still include a TABLESPACE clause:
//NDB參數(shù)解釋 ---from 《mysql性能調(diào)優(yōu)和架構(gòu)設(shè)計(jì)》 1) [NDBD DEFAULT]中的配置項(xiàng): DataMemory:設(shè)定用于存放數(shù)據(jù)和主鍵索引的內(nèi)存段的大小。這個(gè)大小限制了能存放的數(shù)據(jù)的大小,因?yàn)閚db 存儲(chǔ)引擎需屬于內(nèi)存數(shù)據(jù)庫引擎,需要將所有的數(shù)據(jù)(包括索引)都load 到內(nèi)存中。這個(gè)參數(shù)并不是一定需要設(shè)定的,但是默認(rèn)值非常小(80M),只也就是說如果使用默認(rèn)值,將只能存放很小的數(shù)據(jù)。參數(shù)設(shè)置需要帶上單位,如512M,2G 等。另外,DataMemory 里面還會(huì)存放UNDO 相關(guān)的信息,所以,事務(wù)的大小和事務(wù)并發(fā)量也決定了DataMemory 的使用量,建議盡量使用小事務(wù);
FileSystemPath:指定redo 日志,undo 日志,數(shù)據(jù)文件以及meta 數(shù)據(jù)等的存放位置,默認(rèn)位置為DataDir 的設(shè)置,并且在ndbd 初始化的時(shí)候,參數(shù)所設(shè)定的文件夾必須存在。在第一次啟動(dòng)的時(shí)候,ndbd 進(jìn)程會(huì)在所設(shè)定的文件夾下建立一個(gè)子文件夾叫ndb_id_fs,這里的id 為節(jié)點(diǎn)的ID 值,如節(jié)點(diǎn)id 為3 則文件夾名稱為ndb_3_fs。當(dāng)然,這個(gè)參數(shù)也不一定非得設(shè)置在[NDBD DEFAULT]參數(shù)組里面讓所有節(jié)點(diǎn)的設(shè)置都一樣(不過建議這樣設(shè)置),還可以設(shè)置在[NDBD]參數(shù)組下為每一個(gè)節(jié)點(diǎn)單獨(dú)設(shè)置自己的FileSystemPath值;
MaxNoOfLocalOperations:此參數(shù)默認(rèn)是MaxNoOfConcurrentOperations * 1.1的大小,也就是說,每個(gè)節(jié)點(diǎn)一般可以處理超過平均值的10%的操作記錄數(shù)量。但是一般來說,MySQL 建議單獨(dú)設(shè)置此參數(shù)而不要使用默認(rèn)值,并且將此參數(shù)設(shè)置得更較大一些;
http://www.tkk7.com/yongboy/archive/2013/12/12/407498.html
docker-registry:http://www.cnblogs.com/xguo/p/3829329.html ubuntu 14.04 http://www.tuicool.com/articles/b63uei centos 6.5 http://blog.yourtion.com/ubuntu-install-docker.html /etc/sysctl.conf > > net.bridge.bridge-nf-call-iptables = 1 > > net.bridge.bridge-nf-call-ip6tables = 0 > > net.bridge.bridge-nf-call-arptables = 1 xe-switch-network-backend bridge REBOOT
http://www.chenshake.com/install-on-ubuntu-12-04-open-vswitch/
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/hypervisor/kvm.html#install-and-configure-the-agent
tip: 添加網(wǎng)橋 使用openvswitch建立網(wǎng)橋,kvm使用,命令如下: 建立網(wǎng)橋br #ovs-vsctl add-br br0 把eth0(物理機(jī)上網(wǎng)的網(wǎng)卡)添加到br0 #ovs-vsctl add-port br0 eth0 如果不出意外的話現(xiàn)在機(jī)器就不能上網(wǎng)了,可以按照以下方法解決 刪除eth0的配置 #ifconfig eth0 0 為br0分配ip #dhclient br0 因?yàn)槲沂褂玫氖莇hcp獲取ip的,所以執(zhí)行了此命令,如果你的ip是自己手動(dòng)配置的,請(qǐng)把eth0的配置寫到br0上。 https://joshuarogers.net/installing-cloudstack-43-ubuntu-1404
iso: http://www.tuicool.com/articles/FnYFF32 MD5Digest dig = new MD5Digest(); byte[] bytes = "111111".getBytes(); dig.update(bytes, 0, bytes.length); byte[] md5 = new byte[dig.getDigestSize()]; dig.doFinal(md5, 0);
System.out.println(new String(Base64.encode(md5))); http://www.jolokia.org/download.html
tomcat jmx http://blog.csdn.net/diy8187/article/details/4369137 統(tǒng)計(jì) http://blog.csdn.net/blog4j/article/details/17122061 http://www.myexception.cn/software-architecture-design/410583.html |