Skip to content
Qihoo Distributed Configuration Management System
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
agent change one annotation Jun 27, 2018
base protect hashtable in memory Mar 22, 2017
deps add for zookeeper Nov 26, 2018
doc add node-qconf doc Oct 29, 2015
driver Update version to v1.2.2 Jul 28, 2017
manager fix php5 grayContent bug Jul 11, 2017
monitor Update May 18, 2017
test Add new functional_test.php Aug 15, 2018
AUTHORS 1)Adding: Add QConf 1.0.0 : including agent which updates the share m… Mar 24, 2015
CMakeLists.txt Update CMakeLists.txt Mar 27, 2015
LICENSE 1)Adding: Add QConf 1.0.0 : including agent which updates the share m… Mar 24, 2015 Add .travis.yml Jan 12, 2017


Build Status

We have build another interesting proect pika. Pika is a nosql compatible with redis protocol with huge storage space. You can have a try.

Introduction 中文

QConf is a Distributed Configuration Management System! A better replacement of the traditional configuration file. As designed, configuration items which is constantly accessed and modified should be completely separated with application code, and QConf is where it should be.


  • Changes to any configuration will be synchronised to all client machines in real-time.
  • High query efficiency.
  • Convenient deployment and simple interface.
  • High robustness and fault-tolerance.
  • support c/c++, shell, php, python, lua, java, go, node and etc.


The QConf is built using CMake (version 2.6 or newer).

On most systems you can build the library using the following commands:

mkdir build && cd build
cmake ..
make install

Alternatively you can also point the CMake GUI tool to the CMakeLists.txt file.

To install the QConf you can specify the install prefix by setting:

cmake .. -DCMAKE_INSTALL_PREFIX=/install/prefix


  • Set up Zookeeper servers, create or modify znode with Zookeeper Client

    More information about Zookeper: ZooKeeper Getting Started Guide

  • Register the Zookeeper server address with QConf

vi QCONF_INSTALL_PREFIX/conf/idc.conf
  # all the zookeeper host configuration.
  zookeeper.test=,, #zookeeper of idc 'test'
  • Assign local idc
echo test > QCONF_INSTALL_PREFIX/conf/localidc #assign local idc to 'test'
  • Run QConf
cd QCONF_INSTALL_PREFIX/bin && sh start
  • Code to access QConf


  • zkdash - An excellent dashboard for QConf or ZooKeeper provided by IReader Team


  1. statergy
  • running times : ten million times altogether
  • data size : the size of value of each key is 1k
  • test method : multi-processes are running at the same time, and get the elapsed time that ten million times are running
  • machine : Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz, 24 cores; 64G memory
  • language : c++
  1. result
  • enter image description here
  1. conclusion:
  • the lantency is 16μs
  • during multi-process, the QPS can reach one million


  • shell
    qconf get_conf /demo/node1   # get the value of '/demo/node1'
  • c/c++
	  // Init the qconf env
      ret = qconf_init();
      assert(QCONF_OK == ret);

      // Get Conf value
      char value[QCONF_CONF_BUF_MAX_LEN];
      ret = qconf_get_conf("/demo/node1", value, sizeof(value), NULL);
      assert(QCONF_OK == ret);
      // Destroy qconf env



You can’t perform that action at this time.