zoukankan      html  css  js  c++  java
  • Infobright 的安装与配置

    提到列式关系数据库,我们总会想到 Sybase IQ,但如果只是在试验机上测试比较行式和列式关系数据库的性能,我建议使用 Infobright 数据库,Infobright 是一个基于独特的专利知识网格技术的列式数据库,能够降低您90%的管理工作量。使用 Infobright 不需要创建特殊的数据库模式,无需创建和维护索引,无需对数据进行分区,甚至不需要手动调整,知识网格就会在原始数据导入时,自动创建和维护数据,并用以优化每一个查询。在一台 PC 服务器上,Infobright 企业版在对50TB甚至更多数据量进行多并发复杂查询时,能够显示出令人惊叹的速度,相比于 MySQL,其查询速度提升了数倍甚至数十倍。在同类产品中,Infobright 的单机性能处于领先地位。另外,Infobright 是一个与 MySQL 集成的开源数据仓库(Data Warehouse)软件,可作为 MySQL 的一个存储引擎来使用,SELECT 查询与普通 MySQL 无区别。

    Infobright 数据库的优点:

    •查询性能高:百万、千万、亿级记录数条件下,同等的SELECT查询语句,速度比 MyISAM、InnoDB 等普通的 MySQL 存储引擎快5~60倍。
    •存储数据量大:TB 级数据大小,几十亿条记录。
    •高压缩比:通常是10:1,某些应用可能达到40:1,极大地节省了数据存储空间。
    •基于列存储:无需建索引,无需分区。
    •适合复杂的分析性 SQL 查询:SUM, COUNT, AVG, GROUP BY。
    Infobright 数据库的缺点:

    •不支持数据更新:社区版 Infobright 只能使用“LOAD DATA INFILE”的方式导入数据,不支持 INSERT、UPDATE、DELETE。
    •不支持高并发:只能支持10多个并发查询。
    下面我来介绍一下 Infobright 数据库的安装与配置:

    1. 安装 Infobright

    [root@local-server ~]# rpm -ivh infobright-4.0.7-0-x86_64-ice.rpm
    Preparing… ########################################### [100%]
    Installing infobright 4.0.7-0 (x86_64)
    The installer will generate /tmp/ib4.0.7-0-install.log install trace log.
    1:infobright ########################################### [100%]
    Creating/Updating datadir and cachedir
    Creating user mysql and group mysql
    Installing default databases
    Installing MySQL system tables…
    OK
    Filling help tables…
    OK

    … …

    See the manual for more instructions.

    You can start the MySQL daemon with:
    cd /usr/local/infobright-4.0.7-x86_64 ; /usr/local/infobright-4.0.7-x86_64/bin/mysqld_safe &

    You can test the MySQL daemon with mysql-test-run.pl
    cd /usr/local/infobright-4.0.7-x86_64/mysql-test ; perl mysql-test-run.pl

    Please report any problems with the /usr/local/infobright-4.0.7-x86_64/scripts/mysqlbug script!

    System Physical memory: 992(MB)
    System memory too low!
    Infobright optimal ServerMainHeapSize is set to 400(MB)
    Infobright optimal LoaderMainHeapSize is set to 300(MB)
    Infobright server installed into folder /usr/local/infobright
    Installation log file /tmp/ib4.0.7-0-install.log
    ————————————–
    To activate infobright server, please run ./postconfig.sh script from /usr/local/infobright-4.0.7-x86_64.
    Example command: cd /usr/local/infobright-4.0.7-x86_64; ./postconfig.sh

    2. 配置 Infobright 数据库

    默认安装情况下相关配置文件位置如下:

    配置文件: [/etc/my-ib.cnf]
    brighthouse.ini 文件: [/usr/local/infobright-4.0.7-x86_64/data/brighthouse.ini]
    数据存放目录: [/usr/local/infobright-4.0.7-x86_64/data]
    缓存目录: [/usr/local/infobright-4.0.7-x86_64/cache]
    socket 位置: [/tmp/mysql-ib.sock]
    port 端口: [5029]

    可以通过执行如下脚本来设置以上配置:

    [root@local-server infobright]# /usr/local/infobright/postconfig.sh

    然后,根据提示来进行更改配置吧。

    3. 启动 Infobright 数据库

    [root@local-server bin]# service mysqld-ib start
    Starting MySQL.. SUCCESS!

    4. 登录 Infobright 数据库并查看支持的存储引擎

    [root@local-server bin]# mysql-ib
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 1
    Server version: 5.1.40 build number (revision)=IB_4.0.7_r16961_17249(ice) (static)

    Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

    mysql> show engines;
    +————-+———+———————————————————–+————–+——+————+
    | Engine | Support | Comment | Transactions | XA | Savepoints |
    +————-+———+———————————————————–+————–+——+————+
    | BRIGHTHOUSE | DEFAULT | Brighthouse storage engine | YES | NO | NO |
    | MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
    | CSV | YES | CSV storage engine | NO | NO | NO |
    | MyISAM | YES | Default engine as of MySQL 3.23 with great performance | NO | NO | NO |
    | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
    +————-+———+———————————————————–+————–+——+————+
    5 rows in set (0.00 sec)

    mysql>

     来源 http://www.chenjunlu.com/2012/12/how-to-install-and-configure-infobright/

  • 相关阅读:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function问题解决
    Fiddler是最强大最好用的Web调试工具之一--网站抓包分析
    django 运行不同的settings
    Ununtu 15.04 安装MySql(Django连接Mysql)
    Linux SSH登录服务器报ECDSA host key "ip地址" for has changed and you have requested strict checking.错误
    解决将Ubuntu下导出的requirements.txt到Centos服务器上面出现pkg-resource的版本为0.0.0
    Ubuntu安装Nginx和正确卸载Nginx Nginx相关
    jquery 情况form表单的所有内容
    python把中文文档变为拼音
    将多个文件夹内的txt合并
  • 原文地址:https://www.cnblogs.com/future2012lg/p/3047397.html
Copyright © 2011-2022 走看看