View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000507 | SOGo | Backend General | public | 2010-03-22 14:31 | 2010-03-24 15:26 |
Reporter | schreiner | Assigned To | ludovic | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Product Version | 1.2.1 | ||||
Target Version | 1.2.2 | Fixed in Version | 1.2.2 | ||
Summary | 0000507: Repcached support for SOGo | ||||
Description | Repcached is a patch set which adds data replication feature to memcached. http://repcached.lab.klab.org/ The main purpose of repcached is to offer redundancy for memcached system. Here's a small patch in order to be able to use repcached with SOGo, it can even override patch 0000449. You can set multiple memcached servers including specific port configuration for the SOGoMemcachedHost configuration parameter. Typically, 2 servers are used for repcached, for example: SOGoMemcachedHost = "repcached1.example.org, repcached2.example.org"; This patch uses the memcached_servers_parse function of libmemcached : memcached_servers_parse() takes a string, the type that is used for the command line applications, and parse it to an array of memcached_server_st. The example is "localhost, foo:555, foo, bar". All hosts except foo:555 will be set to the default port, while that host will have a port of 555. Best Regards, -- | ||||
Tags | No tags attached. | ||||
2010-03-22 14:31
|
patch-sogo-v1.2.1-repcached.diff (743 bytes)
--- SOGo-1.2.1/SoObjects/SOGo/SOGoCache.m 2010-02-19 20:19:14.000000000 +0100 +++ SOGo-1.2.1-modified/SoObjects/SOGo/SOGoCache.m 2010-03-22 14:56:22.000000000 +0100 @@ -121,10 +121,9 @@ [self logWithFormat: @"Using host '%@' as server", memcachedServerName]; if (!servers) - servers - = memcached_server_list_append(NULL, - [memcachedServerName UTF8String], - 11211, &error); + servers + = memcached_servers_parse([memcachedServerName UTF8String]); + error = memcached_server_push(handle, servers); } } |
Date Modified | Username | Field | Change |
---|---|---|---|
2010-03-22 14:31 | schreiner | New Issue | |
2010-03-22 14:31 | schreiner | File Added: patch-sogo-v1.2.1-repcached.diff | |
2010-03-23 05:03 | ludovic | Status | new => assigned |
2010-03-23 05:03 | ludovic | Assigned To | => ludovic |
2010-03-23 05:03 | ludovic | Target Version | => 1.2.2 |
2010-03-24 15:26 | ludovic | Note Added: 0000788 | |
2010-03-24 15:26 | ludovic | Status | assigned => resolved |
2010-03-24 15:26 | ludovic | Fixed in Version | => 1.2.2 |
2010-03-24 15:26 | ludovic | Resolution | open => fixed |