zoukankan      html  css  js  c++  java
  • FastMQ V0.1.1使用方法

          FastMQ V0.1.1即将在本月底发布,FastMQ V0.1.1版本的配置文件和V0.1.0版本的配置文件没有根本的区别,为了更好的使用FastMQ,下文讲述FastMQ V0.1.1的更改之处和安装,使用方法。

          相对于V0.1.0,FastMQ V0.1.1最大的改变是在程序架构上的,V0.1.0版本使用fostlib的share lib方式连接fastmq,V0.1.1版本为了使使用者能更好的了解fostmq和做二次开发的调试工作,V0.1.1版本直接使用连接fostlib中的o文件方式。

          FastMQ V0.1.1版本中,安装方法如下:

    安装libevent,tc服务器

    cd fostmq_path

    ./make.sh

    ./make.sh install

    ./fostmq config_path

    即可安装fostmq,并且运行,若执行make.sh无反应或提示权限问题,请检查make.sh的权限。

         配置文件:

    #notice:every config item value max length is 64 chars.
    bind_ip= 192.168.134.184  #服务器ip,目前必须配置
    port= 9090  #服务器监听端口
    network_timeout= 50 #连接延迟时间

    #max network connection
    max_connection=300 #服务器最大连接数

    #max thread pool size
    max_threadpool = 256 #线程池最大线程数,一般为连接池的1/2

    #log file path
    #this is must absolute path
    log_path= /app/fostmq/log #日志文件路径

    #store_path
    store_path =/app/fostmq/data #队列文件存放路径

    #interval time snyc memory to disk
    sync_time= 34 #队列内容从内存同步到硬盘时间间隔

    #the database memory cache size in MB
    chuck_size=64 #内存块大小

    #the maximum munber of non-leaf nodes to be cached
    nonleaf_nodes=12 #队列服务器b-tree的node数

    #the thread stack size in KB
    stack_size = 4 #线程次中,线程栈的最小大小,最小为4

    #the prefix name for the log file,
    #the time of log file created in the end.
    log_prefix=fostmq #日志文件的前缀

    #every log file max line number
    log_line=5000 #单日志文件最大的日志记录数

    #log level
    #please config it with number
    #explame if you want to set log level to info,please set log_level=6
    ### 0:emerg for emergency
    ### 1:alert
    ### 2:crit for critical
    ### 3:error
    ### 4:warn for warning
    ### 5:notice
    ### 6:info
    ### 7:debug
    log_level=7 #日志级别,最佳定义4

       FastMQ V0.1.2版本计划:

            1.隔离队列数据和队列系统数据;

            2.增加黑名单,白名单功能;

            3.增加指定启动进程用户组和用户功能;

            4.更改taskpool的结构体,节省内存;

            5.更改函数指针定义过多问题;

       因FastMQ完全是使用业余时间开发,故计划FastMQ V0.1.2将会在明年3月初发布。

       FastMQ V0.1.1已经是一个相对稳定版本,发布后大家可以放心使用。

  • 相关阅读:
    软工实践
    福大软工 · 最终作业
    福大软工 · 第十二次作业
    Beta冲刺(7/7)
    Beta冲刺(5/7)
    Beta 冲刺(6/7)
    Beta冲刺 (4/7)
    Beta冲刺 (3/7)
    Beta冲刺 (2/7)
    Beta 冲刺(1/7)
  • 原文地址:https://www.cnblogs.com/Seapeak/p/1843153.html
Copyright © 2011-2022 走看看