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,不支持創建臨時表(temporary tables); 2,創建索引和鍵的限制: (1),在列上創建索引長度超過3072bytes會成功,但是只能使用索引的前3072bytes。并且會顯示警告信息"specified key was too long,max key lenght is 3072 keys"
不支持的特征 1,在NDB創建create table時,一定要指定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參數解釋 ---from 《mysql性能調優和架構設計》 1) [NDBD DEFAULT]中的配置項: DataMemory:設定用于存放數據和主鍵索引的內存段的大小。這個大小限制了能存放的數據的大小,因為ndb 存儲引擎需屬于內存數據庫引擎,需要將所有的數據(包括索引)都load 到內存中。這個參數并不是一定需要設定的,但是默認值非常小(80M),只也就是說如果使用默認值,將只能存放很小的數據。參數設置需要帶上單位,如512M,2G 等。另外,DataMemory 里面還會存放UNDO 相關的信息,所以,事務的大小和事務并發量也決定了DataMemory 的使用量,建議盡量使用小事務;
FileSystemPath:指定redo 日志,undo 日志,數據文件以及meta 數據等的存放位置,默認位置為DataDir 的設置,并且在ndbd 初始化的時候,參數所設定的文件夾必須存在。在第一次啟動的時候,ndbd 進程會在所設定的文件夾下建立一個子文件夾叫ndb_id_fs,這里的id 為節點的ID 值,如節點id 為3 則文件夾名稱為ndb_3_fs。當然,這個參數也不一定非得設置在[NDBD DEFAULT]參數組里面讓所有節點的設置都一樣(不過建議這樣設置),還可以設置在[NDBD]參數組下為每一個節點單獨設置自己的FileSystemPath值;
MaxNoOfLocalOperations:此參數默認是MaxNoOfConcurrentOperations * 1.1的大小,也就是說,每個節點一般可以處理超過平均值的10%的操作記錄數量。但是一般來說,MySQL 建議單獨設置此參數而不要使用默認值,并且將此參數設置得更較大一些;
http://www.aygfsteel.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: 添加網橋 使用openvswitch建立網橋,kvm使用,命令如下: 建立網橋br #ovs-vsctl add-br br0 把eth0(物理機上網的網卡)添加到br0 #ovs-vsctl add-port br0 eth0 如果不出意外的話現在機器就不能上網了,可以按照以下方法解決 刪除eth0的配置 #ifconfig eth0 0 為br0分配ip #dhclient br0 因為我使用的是dhcp獲取ip的,所以執行了此命令,如果你的ip是自己手動配置的,請把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 統計 http://blog.csdn.net/blog4j/article/details/17122061 http://www.myexception.cn/software-architecture-design/410583.html |