https://github.com/platformlab/memcached-a
The repo for both original memcached and memcached-A
https://github.com/platformlab/memcached-a
Last synced: 5 months ago
JSON representation
The repo for both original memcached and memcached-A
- Host: GitHub
- URL: https://github.com/platformlab/memcached-a
- Owner: PlatformLab
- License: bsd-3-clause
- Created: 2018-01-27T00:44:53.000Z (almost 8 years ago)
- Default Branch: memcached-A
- Last Pushed: 2018-09-23T06:45:00.000Z (over 7 years ago)
- Last Synced: 2025-07-04T00:38:46.564Z (7 months ago)
- Language: C
- Homepage:
- Size: 3.33 MB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- Contributing: CONTRIBUTING.md
- License: COPYING
- Authors: AUTHORS
Awesome Lists containing this project
README
# Memcached-A (Under Construction)
## Note
This repo contains two major branches:
the original memcached version 1.5.6 (`master` branch);
and the memcached-A (restructured memcached-1.5.6 with Arachne, `memcached-A` branch).
The `coreTrace` branch adds timetraces and counters on memcached 1.5.6 to record
the changes of cores, time spent on libevent turnaround and network I/O, etc.
Memcached-A is currently under construction; the unit tests may be failing.
## How do I use Memcached-A?
0. Clone this repo to your target directory `${MEMCACHE_DIR}`.
The default branch is `memcached-A` branch.
```
git clone https://github.com/PlatformLab/memcached.git ${MEMCACHE_DIR}
cd ${MEMCACHE_DIR}
```
1. Use the `scripts/prepare.sh` to install Arachne and compile memcached-A
```
./scripts/prepare.sh
```
It will automatically download Arachne and its dependencies, and build
everything for you. This script can take a few minutes to run :)
2. Make sure the core arbiter is running in your system, if not, start it by:
```
sudo ${MEMCACHE_DIR}/arachne-all/CoreArbiter/bin/coreArbiterServer
```
You can make it run in background.
3. Then start memcached-A in ${MEMCACHE_DIR}, here is an example command:
```
./memcached --minNumCores 2 --maxNumCores 15 -t 1 -c 32768 -m 10240
```
This will start a memcached-A service with 1 dispatch thread, max 32768
connections, and 10GB memory. It will use at least 2 cores and at most
15 cores; Arachne will automatically adjust the number allocated cores
based on the current load.