4bfc868fa3
compatible / memcached, and has more features(as follows): * persistent storage (you can use flare as persistent memcached) * pluggable storage (currently only Tokyo Cabinet is available, though:) * data replication (synchronous or asynchronous) * data partitioning (automatically partitioned according to # of master servers (clients do not have to care about it)) * dynamic reconstruction, and partitioning (you can dynamically (I mean, without any service interruption) add slave servers and partition master servers) * node monitoring and failover (if any server is down, the server is automatically isolated from active servers and another slave server is promoted to master server) * request proxy (you can always get same result regardless of servers you connect to. so you can think flare servers as one big key-value storage) * over 256 bytes keys, and over 1M bytes values are available WWW: http://labs.gree.jp/Top/OpenSource/Flare-en.html
28 lines
983 B
C++
28 lines
983 B
C++
--- src/flared/ini_option.cc.orig 2009-10-09 19:08:47.000000000 +0900
|
|
+++ src/flared/ini_option.cc 2010-05-30 00:32:09.744274848 +0900
|
|
@@ -23,6 +23,7 @@
|
|
_argv(NULL),
|
|
_back_log(default_back_log),
|
|
_config_path(""),
|
|
+ _pid_path(""),
|
|
_daemonize(false),
|
|
_data_dir(""),
|
|
_index_server_name(""),
|
|
@@ -106,6 +107,9 @@
|
|
if (opt_var_map.count("config")) {
|
|
this->_config_path = opt_var_map["config"].as<string>();
|
|
}
|
|
+ if (opt_var_map.count("pid")) {
|
|
+ this->_pid_path = opt_var_map["pid"].as<string>();
|
|
+ }
|
|
|
|
// parse config file
|
|
if (this->_config_path.empty() == false) {
|
|
@@ -362,6 +366,7 @@
|
|
int ini_option::_setup_cli_option(program_options::options_description& option) {
|
|
option.add_options()
|
|
("config,f", program_options::value<string>(), "path to config file")
|
|
+ ("pid,p", program_options::value<string>(), "path to pid file")
|
|
("version,v", "display version")
|
|
("help,h", "display this help");
|
|
|