├── cf ├── .gitignore ├── Makefile ├── README.md ├── include │ ├── queue.h │ ├── meminfo.h │ ├── olock.h │ ├── mem_count.h │ ├── cf_str.h │ ├── hist_track.h │ ├── jem.h │ ├── rchash.h │ ├── vmapx.h │ ├── socket.h │ ├── dynbuf.h │ └── hist.h └── src │ ├── Makefile │ ├── arenax_cold.c │ ├── olock.c │ └── daemon.c ├── pkg ├── dist │ └── .gitignore ├── packages │ └── .gitignore ├── rpm │ ├── asm-files │ ├── server-spec-system │ ├── server-spec-system-el7 │ ├── server-spec-config │ ├── server-spec-scripts │ ├── server-spec-base │ ├── asinstall │ └── Makefile ├── deb │ ├── conffiles │ ├── copyright │ ├── server-64 │ ├── postinst.server │ ├── asinstall │ └── Makefile └── tar │ ├── bin │ └── aerospike │ ├── share │ ├── libexec │ │ ├── aerospike-status │ │ ├── aerospike-restart │ │ ├── aerospike-stop │ │ ├── aerospike-destroy │ │ └── aerospike-start │ ├── man │ │ ├── aerospike-stop.man │ │ ├── aerospike-start.man │ │ ├── aerospike-restart.man │ │ ├── aerospike-destroy.man │ │ ├── aerospike-status.man │ │ └── aerospike-init.man │ ├── lib │ │ └── aerospike-render.py │ └── etc │ │ └── aerospike.conf │ ├── Makefile │ └── README ├── tools ├── jem │ ├── .gitignore │ ├── get-jem-stats │ ├── get-jem-stats.sh │ ├── jemdefs.py │ ├── extract-jem-stats │ ├── extract-jem-stats.sh │ ├── jemeff │ ├── jemabs │ └── jemdel ├── afterburner │ ├── README.md │ └── afterburner.sh └── citrus2aero │ └── upgrade2to3 ├── .gitignore ├── as ├── etc │ ├── aerospike-server.tmpfiles │ ├── aerospike-server.sysconfig │ ├── logrotate_asd │ ├── run-under-gdb │ ├── aerospike-server.service │ ├── asd-systemd-helper │ ├── initfns │ ├── aerospike.conf │ ├── aerospike_ssd.conf │ ├── aerospike_mesh.conf │ ├── aerospike_dev.conf │ ├── init-script.deb │ └── init-script ├── Makefile ├── include │ ├── base │ │ ├── thr_batch.h │ │ ├── udf_aerospike.h │ │ ├── udf_arglist.h │ │ ├── feature.h │ │ ├── json_init.h │ │ ├── ldt_aerospike.h │ │ ├── udf_timer.h │ │ ├── xdr_serverside.h │ │ ├── udf_memtracker.h │ │ ├── thr_write.h │ │ ├── thr_proxy.h │ │ ├── thr_info.h │ │ ├── rec_props.h │ │ ├── thr_tsvc.h │ │ ├── security_config.h │ │ ├── udf_cask.h │ │ ├── transaction_policy.h │ │ ├── thr_sindex.h │ │ ├── monitor.h │ │ ├── aggr.h │ │ ├── packet_compression.h │ │ ├── security.h │ │ ├── udf_rw.h │ │ ├── asm.h │ │ └── ldt_record.h │ └── fabric │ │ ├── fb_health.h │ │ └── hb.h └── src │ ├── storage │ ├── drv_ssd_cold.c │ └── drv_memory.c │ └── base │ ├── xdr_serverside_stubs.c │ ├── json_init.c │ ├── udf_timer.c │ ├── udf_memtracker.c │ └── udf_arglist.c ├── CONTRIBUTING.md ├── xdr ├── Makefile └── src │ └── Makefile ├── apidocs ├── Makefile └── src │ ├── footer.html │ └── header.html ├── ai ├── Makefile ├── src │ └── Makefile └── include │ ├── ai_obj.h │ ├── bt_output.h │ ├── ai_globals.h │ ├── find.h │ ├── ai.h │ ├── ai_btree.h │ └── stream.h ├── make_in └── Makefile.targets └── .gitmodules /cf/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | target -------------------------------------------------------------------------------- /pkg/dist/.gitignore: -------------------------------------------------------------------------------- 1 | [^.]* 2 | -------------------------------------------------------------------------------- /pkg/packages/.gitignore: -------------------------------------------------------------------------------- 1 | [^.]* 2 | -------------------------------------------------------------------------------- /tools/jem/.gitignore: -------------------------------------------------------------------------------- 1 | jemdefs.pyc 2 | -------------------------------------------------------------------------------- /pkg/rpm/asm-files: -------------------------------------------------------------------------------- 1 | /etc/aerospike/initfns 2 | -------------------------------------------------------------------------------- /pkg/deb/conffiles: -------------------------------------------------------------------------------- 1 | /etc/aerospike/aerospike.conf 2 | -------------------------------------------------------------------------------- /pkg/rpm/server-spec-system: -------------------------------------------------------------------------------- 1 | /etc/init.d/aerospike 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .project 3 | .cproject 4 | run 5 | target 6 | TAGS 7 | -------------------------------------------------------------------------------- /as/etc/aerospike-server.tmpfiles: -------------------------------------------------------------------------------- 1 | d /run/aerospike 0755 aerospike aerospike - 2 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | For details on contributing to Aerospike, please read http://www.aerospike.com/community/contributor/ 4 | -------------------------------------------------------------------------------- /xdr/Makefile: -------------------------------------------------------------------------------- 1 | # Aerospike XDR 2 | # Makefile 3 | 4 | .PHONY: default 5 | default: all 6 | @echo "done." 7 | 8 | %: 9 | $(MAKE) -C src $@ 10 | -------------------------------------------------------------------------------- /as/Makefile: -------------------------------------------------------------------------------- 1 | # Aerospike Server 2 | # Makefile 3 | 4 | .PHONY: default 5 | default: all 6 | @echo "done." 7 | 8 | %: 9 | $(MAKE) -C src $@ 10 | -------------------------------------------------------------------------------- /as/etc/aerospike-server.sysconfig: -------------------------------------------------------------------------------- 1 | ASD_CONFIG_FILE=/etc/aerospike/aerospike.conf 2 | 3 | # Uncomment to start with cold start 4 | #ASD_COLDSTART="--cold-start" 5 | -------------------------------------------------------------------------------- /cf/Makefile: -------------------------------------------------------------------------------- 1 | # Citrusleaf Foundation 2 | # Makefile 3 | 4 | .PHONY: default 5 | default: all 6 | @echo "done." 7 | 8 | %: 9 | $(MAKE) -C src $@ 10 | -------------------------------------------------------------------------------- /apidocs/Makefile: -------------------------------------------------------------------------------- 1 | 2 | .default: docs 3 | 4 | .PHONY: docs 5 | docs: 6 | doxygen src/doxyfile 7 | 8 | .PHONY: docs-clean 9 | docs-clean: 10 | rm -rf target 11 | -------------------------------------------------------------------------------- /ai/Makefile: -------------------------------------------------------------------------------- 1 | # Aerospike Server -- Aerospike Index 2 | # Makefile 3 | 4 | .PHONY: default 5 | default: all 6 | @echo "done." 7 | 8 | %: 9 | $(MAKE) -C src $@ 10 | -------------------------------------------------------------------------------- /cf/README.md: -------------------------------------------------------------------------------- 1 | # Aerospike CF 2 | 3 | Library of objects shared between ASD and XDR. 4 | 5 | ## Build 6 | 7 | To build 8 | 9 | $ make 10 | 11 | To clean: 12 | 13 | $ make clean 14 | -------------------------------------------------------------------------------- /pkg/tar/bin/aerospike: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | SCRIPT_PATH=$0 3 | SCRIPT_HOME=$(cd $(dirname ${SCRIPT_PATH})/..; pwd) 4 | AEROSPIKE_DAEMON=${SCRIPT_HOME}/bin/asd ${SCRIPT_HOME}/share/bin/aerospike $@ 5 | -------------------------------------------------------------------------------- /pkg/rpm/server-spec-system-el7: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/aerospike.service 2 | /usr/bin/asd-systemd-helper 3 | %config /etc/tmpfiles.d/aerospike.conf 4 | %config(noreplace) /etc/sysconfig/aerospike 5 | -------------------------------------------------------------------------------- /as/etc/logrotate_asd: -------------------------------------------------------------------------------- 1 | /var/log/aerospike/aerospike.log { 2 | daily 3 | rotate 90 4 | dateext 5 | compress 6 | olddir /var/log/aerospike/ 7 | postrotate 8 | kill -HUP `cat /var/run/aerospike/asd.pid` 9 | endscript 10 | } 11 | -------------------------------------------------------------------------------- /tools/afterburner/README.md: -------------------------------------------------------------------------------- 1 | ### Afterburner 2 | 3 | Mainly used for performance tuning of high end servers, 4 | 5 | It does : 6 | 7 | * Apply NIQ queue IRQ smp_affinity to ALL ethernet interfaces 8 | * Modify *aerospike.conf* to tune it according to the hardware setup 9 | -------------------------------------------------------------------------------- /pkg/rpm/server-spec-config: -------------------------------------------------------------------------------- 1 | /etc/aerospike/aerospike_ssd.conf 2 | /etc/aerospike/aerospike_mesh.conf 3 | %config(noreplace) /etc/logrotate.d/aerospike 4 | %config(noreplace) /etc/aerospike/aerospike.conf 5 | %defattr(-,aerospike,aerospike) 6 | %dir /var/log/aerospike 7 | %dir /var/run/aerospike 8 | /opt/aerospike 9 | %defattr(-,root,root) 10 | -------------------------------------------------------------------------------- /pkg/deb/copyright: -------------------------------------------------------------------------------- 1 | Aerospike Server 2 | 3 | Copyright: Aerospike, Inc 4 | 5 | These files are owned by Aerospike, Inc. 6 | 7 | Permission to use is covered by customer agreements signed by Aerospike. 8 | Please see your customer agreements or non-disclosure agreements 9 | for distribution and re-distribution rights. 10 | -------------------------------------------------------------------------------- /pkg/rpm/server-spec-scripts: -------------------------------------------------------------------------------- 1 | %pre server-@EDITION@ 2 | if ! id -g aerospike >/dev/null 2>&1; then 3 | echo "Adding group aerospike" 4 | /usr/sbin/groupadd -r aerospike 5 | fi 6 | if ! id -u aerospike >/dev/null 2>&1; then 7 | echo "Adding user aerospike" 8 | /usr/sbin/useradd -d /opt/aerospike -c 'Aerospike server' -g aerospike aerospike 9 | fi 10 | -------------------------------------------------------------------------------- /pkg/deb/server-64: -------------------------------------------------------------------------------- 1 | Package: aerospike-server-@EDITION@ 2 | Version: @VERSION@-1 3 | Section: Databases 4 | Priority: optional 5 | Architecture: amd64 6 | Depends: libc6 (>= 2.7), logrotate 7 | Maintainer: Aerospike, Inc. 8 | Description: The Aerospike distributed datastore allows fully scalable and reliable data storage with elastic server properties. 9 | Installed-Size: @SIZE@ 10 | 11 | -------------------------------------------------------------------------------- /as/etc/run-under-gdb: -------------------------------------------------------------------------------- 1 | #!/bin/tcsh -f 2 | # 3 | # run-under-gdb: Run a given command line under GDB. 4 | # 5 | 6 | echo "\nRunning under GDB: $argv:q" 7 | 8 | set FILE = "$argv[1]" 9 | set ARGS = "$argv[2-]" 10 | 11 | set CMDFILE = /tmp/gdb.$$ 12 | 13 | echo "file $FILE" > $CMDFILE 14 | echo "set follow-fork-mode child" >> $CMDFILE 15 | #echo "break main" >> $CMDFILE 16 | echo "run $ARGS" >> $CMDFILE 17 | 18 | gdb -q -x $CMDFILE 19 | 20 | /bin/rm -f $CMDFILE 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /as/etc/aerospike-server.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Aerospike Server 3 | After=network.target 4 | Wants=network.target 5 | 6 | [Service] 7 | PIDFile=/var/run/aerospike/asd.pid 8 | LimitNOFILE=100000 9 | TimeoutSec=15 10 | User=aerospike 11 | Group=aerospike 12 | EnvironmentFile=/etc/sysconfig/aerospike 13 | PermissionsStartOnly=True 14 | ExecStartPre=/usr/bin/asd-systemd-helper 15 | ExecStart=/usr/bin/asd $ASD_COLDSTART --config-file $ASD_CONFIG_FILE --foreground 16 | 17 | [Install] 18 | WantedBy=multi-user.target 19 | -------------------------------------------------------------------------------- /pkg/deb/postinst.server: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | case "$1" in 6 | configure) 7 | 8 | # create aerospike group if it isn't already there 9 | if ! getent group aerospike >/dev/null; then 10 | groupadd aerospike 11 | fi 12 | 13 | # create aerospike user if it isn't already there 14 | if ! getent passwd aerospike >/dev/null; then 15 | useradd -r -d /opt/aerospike -g aerospike aerospike 16 | fi 17 | 18 | chown -R aerospike:aerospike /opt/aerospike /var/log/aerospike /var/run/aerospike 19 | 20 | ;; 21 | esac 22 | 23 | exit 0 24 | -------------------------------------------------------------------------------- /pkg/tar/share/libexec/aerospike-status: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ################################################################################ 3 | # 4 | # Start Script for Aerospike 5 | # 6 | # Inherits definitions from aerospike run script 7 | # 8 | ################################################################################ 9 | 10 | process_stopped() { 11 | info "process stopped" 12 | } 13 | 14 | process_running() { 15 | info "process running" 16 | } 17 | 18 | process_died() { 19 | info "process died abruptly" 20 | } 21 | 22 | main() { 23 | process_check 24 | } 25 | -------------------------------------------------------------------------------- /make_in/Makefile.targets: -------------------------------------------------------------------------------- 1 | # Aerospike Server 2 | # Makefile.targets 3 | # 4 | # Common Makefile targets, dependencies, and pattern-matching rules. 5 | # 6 | 7 | strip: $(SERVER) 8 | $(STRIP) $(SERVER) -o $(SERVER).stripped 9 | 10 | -include $(DEPENDENCIES) 11 | 12 | $(OBJECT_DIR)/%.o: %.c 13 | ifeq ($(MEXP_PHASE),1) 14 | $(DEPTH)/build/mexp $< $(SRCDIR)$*.c 15 | else 16 | ifeq ($(MEXP_PHASE),2) 17 | $(CC) $(CFLAGS) $(DEF_FN) -o $@$(SUFFIX) -c $(INCLUDES) $(SRCDIR)$*.c 18 | else 19 | $(CC) $(CFLAGS) $(DEF_FN) -o $@$(SUFFIX) -c $(INCLUDES) $(SRCDIR)$< 20 | endif 21 | endif 22 | -------------------------------------------------------------------------------- /tools/jem/get-jem-stats: -------------------------------------------------------------------------------- 1 | #!/bin/tcsh -f 2 | # 3 | # File: get-jem-stats 4 | # 5 | # Description: 6 | # Endlessly poll the Aerospike server for its JEMalloc statistics. 7 | # Polling interval is specified by the single, optional command-line 8 | # argument, which defaults to 600 sec. = 10 min. 9 | # 10 | # Usage: 11 | # prompt% get-jem-stats {} 12 | # 13 | 14 | set INTERVAL = 600 15 | if ($#argv == 1) set INTERVAL = $argv[1] 16 | 17 | while (1) 18 | asinfo -v jem-stats: >& /dev/null 19 | sleep $INTERVAL 20 | end 21 | -------------------------------------------------------------------------------- /tools/jem/get-jem-stats.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # File: get-jem-stats.sh 4 | # 5 | # Description: 6 | # Endlessly poll the Aerospike server for its JEMalloc statistics. 7 | # Polling interval is specified by the single, optional command-line 8 | # argument, which defaults to 600 sec. = 10 min. 9 | # 10 | # Usage: 11 | # prompt$ get-jem-stats.sh {} 12 | # 13 | 14 | INTERVAL=600 15 | if [ $# -eq 1 ]; then INTERVAL=$1; fi 16 | 17 | while true; do 18 | asinfo -v jem-stats: &> /dev/null 19 | sleep $INTERVAL 20 | done 21 | -------------------------------------------------------------------------------- /as/etc/asd-systemd-helper: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | mem=`/sbin/sysctl -n kernel.shmall` 3 | min=4294967296 4 | if [ ${#mem} -le ${#min} ]; then 5 | if [ $mem -lt $min ]; then 6 | echo "kernel.shmall too low, setting to 4G pages = 16TB" 7 | /sbin/sysctl -w kernel.shmall=$min 8 | fi 9 | fi 10 | 11 | mem=`/sbin/sysctl -n kernel.shmmax` 12 | min=1073741824 13 | if [ ${#mem} -le ${#min} ]; then 14 | if [ $mem -lt $min ]; then 15 | echo "kernel.shmmax too low, setting to 1GB" 16 | /sbin/sysctl -w kernel.shmmax=$min 17 | fi 18 | fi 19 | 20 | if [ -f /etc/aerospike/initfns ] 21 | then 22 | . /etc/aerospike/initfns 23 | fi -------------------------------------------------------------------------------- /pkg/tar/share/libexec/aerospike-restart: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ################################################################################ 3 | # 4 | # Restart Script for Aerospike 5 | # 6 | # Inherits definitions from aerospike run script 7 | # 8 | ################################################################################ 9 | 10 | main() { 11 | 12 | try "$0 stop --home ${AEROSPIKE_HOME}" 13 | if [ $? -ne 0 ]; then 14 | exit $? 15 | else 16 | info "stopped" 17 | fi 18 | 19 | try "$0 start --home ${AEROSPIKE_HOME}" 20 | if [ $? -ne 0 ]; then 21 | exit $? 22 | else 23 | info "started" 24 | fi 25 | } 26 | -------------------------------------------------------------------------------- /apidocs/src/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 12 | 13 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /pkg/tar/share/libexec/aerospike-stop: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ################################################################################ 3 | # 4 | # Start Script for Aerospike 5 | # 6 | # Inherits definitions from aerospike run script 7 | # 8 | ################################################################################ 9 | 10 | process_stopped() { 11 | debug "process stopped" 12 | return 0 13 | } 14 | 15 | process_running() { 16 | debug "process running" 17 | sudo kill $1 18 | sudo rm -f $2 19 | return 0 20 | } 21 | 22 | process_died() { 23 | info "process died abruptly" 24 | sudo rm -f $2 25 | return 0 26 | } 27 | 28 | main() { 29 | 30 | process_check 31 | if [ $? -eq 0 ]; then 32 | info "stopped" 33 | else 34 | error "an error occurred" 35 | fi 36 | } 37 | -------------------------------------------------------------------------------- /pkg/rpm/server-spec-base: -------------------------------------------------------------------------------- 1 | Name: aerospike 2 | Version: @VERSION@ 3 | Release: 1.@RELEASE@ 4 | Summary: The Aerospike Database 5 | License: Proprietary 6 | Group: Application 7 | BuildArch: x86_64 8 | Vendor: Aerospike, Inc. 9 | 10 | %description 11 | The Aerospike distributed datastore allows fully scalable 12 | and reliable data storage with elastic server properties. 13 | 14 | %define _topdir pkg/dist 15 | %define __spec_install_post /usr/lib/rpm/brp-compress 16 | %package server-@EDITION@ 17 | Requires: logrotate 18 | Summary: Aerospike server 19 | Group: Applications 20 | %description server-@EDITION@ 21 | This package contains all of the code for running the Aerospike server. 22 | %files server-@EDITION@ 23 | %defattr(-,root,root) 24 | /usr/bin/asd 25 | /usr/bin/asmigrate2to3 26 | /usr/bin/asfixownership 27 | -------------------------------------------------------------------------------- /pkg/tar/share/libexec/aerospike-destroy: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ################################################################################ 3 | # 4 | # Destroy Script for Aerospike 5 | # 6 | # Inherits definitions from aerospike run script 7 | # 8 | ################################################################################ 9 | 10 | ################################################################################ 11 | # MAIN 12 | ################################################################################ 13 | 14 | main() { 15 | 16 | try "$0 stop --home ${AEROSPIKE_HOME}" 17 | if [ $? -ne 0 ]; then 18 | exit $? 19 | fi 20 | 21 | try "rm -rf ${AEROSPIKE_HOME}/bin" 22 | try "rm -rf ${AEROSPIKE_HOME}/etc" 23 | try "rm -rf ${AEROSPIKE_HOME}/share" 24 | try "rm -rf ${AEROSPIKE_HOME}/var" 25 | 26 | } 27 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "modules/common"] 2 | path = modules/common 3 | url = https://github.com/aerospike/aerospike-common.git 4 | [submodule "modules/mod-lua"] 5 | path = modules/mod-lua 6 | url = https://github.com/aerospike/aerospike-mod-lua.git 7 | [submodule "modules/jansson"] 8 | path = modules/jansson 9 | url = https://github.com/aerospike/jansson.git 10 | [submodule "modules/asmalloc"] 11 | path = modules/asmalloc 12 | url = https://github.com/aerospike/asmalloc.git 13 | [submodule "modules/jemalloc"] 14 | path = modules/jemalloc 15 | url = https://github.com/aerospike/jemalloc.git 16 | [submodule "modules/lua-core"] 17 | path = modules/lua-core 18 | url = https://github.com/aerospike/aerospike-lua-core.git 19 | [submodule "modules/luajit"] 20 | path = modules/luajit 21 | url = https://github.com/aerospike/luajit.git 22 | -------------------------------------------------------------------------------- /pkg/tar/share/man/aerospike-stop.man: -------------------------------------------------------------------------------- 1 | .TH "aerospike stop" 1 "1 APRIL 2014" "aerospike stop" "aerospike manual" 2 | 3 | .SH NAME 4 | 5 | aerospike stop \- stop aerospike server daemon 6 | 7 | .SH SYNOPSIS 8 | 9 | aerospike stop [--home PATH] 10 | 11 | .SH DESCRIPTION 12 | 13 | .PP 14 | Start the aerospike server daemon. The program will assume the current directory is the aerospike home directory. 15 | 16 | To override the home directory, specify the `--home PATH` option. 17 | 18 | .SH OPTIONS 19 | 20 | .IP "--home PATH" 21 | 22 | The directory to use as the aerospike home directory. 23 | 24 | .SH EXAMPLES 25 | 26 | .HP 27 | To stop aerospike running in the current directory: 28 | 29 | aerospike stop 30 | 31 | .HP 32 | To stop aerospike running a different home directory, such as '/usr/share/aerospike': 33 | 34 | aerospike stop --home /usr/share/aerospike -------------------------------------------------------------------------------- /pkg/tar/share/man/aerospike-start.man: -------------------------------------------------------------------------------- 1 | .TH "aerospike start" 1 "1 APRIL 2014" "aerospike start" "aerospike manual" 2 | 3 | .SH NAME 4 | 5 | aerospike start \- start aerospike server daemon 6 | 7 | .SH SYNOPSIS 8 | 9 | aerospike start [--home PATH] 10 | 11 | .SH DESCRIPTION 12 | 13 | .PP 14 | Start the aerospike server daemon. The program will assume the current directory is the aerospike home directory. 15 | 16 | To override the home directory, specify the `--home PATH` option. 17 | 18 | .SH OPTIONS 19 | 20 | .IP "--home PATH" 21 | 22 | The directory to use as the aerospike home directory. 23 | 24 | .SH EXAMPLES 25 | 26 | .HP 27 | To start aerospike running in the current directory: 28 | 29 | aerospike start 30 | 31 | .HP 32 | To start aerospike running a different home directory, such as '/usr/share/aerospike': 33 | 34 | aerospike start --home /usr/share/aerospike -------------------------------------------------------------------------------- /as/etc/initfns: -------------------------------------------------------------------------------- 1 | # 2 | # initfns: Customize the behavior of the Aerospike daemon init scripts. 3 | # 4 | 5 | # Enable any requested library preloads: 6 | if [[ $2 =~ jem$ ]]; then 7 | LD_PRELOAD=/opt/aerospike/lib/libjemalloc.so 8 | if [[ $2 =~ ^as ]]; then 9 | LD_PRELOAD=/opt/aerospike/lib/asmalloc.jem.so:$LD_PRELOAD 10 | else if [[ $2 =~ ^rz ]]; then 11 | export MALLOC_CONF=junk:true,redzone:true,abort:true 12 | fi 13 | fi 14 | echo "MALLOC_CONF = $MALLOC_CONF" 15 | echo Preload libraries: $LD_PRELOAD 16 | fi 17 | 18 | if [[ $3 =~ gdb ]]; then 19 | CMD="/opt/aerospike/bin/run-under-gdb $CMD" 20 | else 21 | if [[ $3 =~ vg ]]; then 22 | CMD="valgrind --leak-check=full --suppressions=/etc/aerospike/valgrind.supp --db-attach=yes $CMD" 23 | else 24 | if [[ $3 =~ core ]]; then 25 | export DAEMON_COREFILE_LIMIT="unlimited" 26 | fi 27 | fi 28 | fi 29 | -------------------------------------------------------------------------------- /pkg/tar/share/man/aerospike-restart.man: -------------------------------------------------------------------------------- 1 | .TH "aerospike restart" 1 "1 APRIL 2014" "aerospike restart" "aerospike manual" 2 | 3 | .SH NAME 4 | 5 | aerospike restart \- restart aerospike server daemon 6 | 7 | .SH SYNOPSIS 8 | 9 | aerospike restart [--home PATH] 10 | 11 | .SH DESCRIPTION 12 | 13 | .PP 14 | Restart the aerospike server daemon. The program will assume the current directory is the aerospike home directory. 15 | 16 | To override the home directory, specify the `--home PATH` option. 17 | 18 | .SH OPTIONS 19 | 20 | .IP "--home PATH" 21 | 22 | The directory to use as the aerospike home directory. 23 | 24 | .SH EXAMPLES 25 | 26 | .HP 27 | To restart aerospike running in the current directory: 28 | 29 | aerospike restart 30 | 31 | .HP 32 | To restart aerospike running a different home directory, such as '/usr/share/aerospike': 33 | 34 | aerospike restart --home /usr/share/aerospike -------------------------------------------------------------------------------- /pkg/tar/share/man/aerospike-destroy.man: -------------------------------------------------------------------------------- 1 | .TH "aerospike destroy" 1 "1 APRIL 2014" "aerospike destroy" "aerospike manual" 2 | 3 | .SH NAME 4 | 5 | aerospike destroy \- destroy aerospike home directory daemon 6 | 7 | .SH SYNOPSIS 8 | 9 | aerospike destroy [--home PATH] 10 | 11 | .SH DESCRIPTION 12 | 13 | .PP 14 | Destroy the home directory for aerospike. This will remove all directories which were created by the `init` command. 15 | 16 | To override the home directory, specify the `--home PATH` option. 17 | 18 | .SH OPTIONS 19 | 20 | .IP "--home PATH" 21 | 22 | The directory to use as the aerospike home directory. 23 | 24 | .SH EXAMPLES 25 | 26 | .HP 27 | To destroy aerospike running in the current directory: 28 | 29 | aerospike destroy 30 | 31 | .HP 32 | To destroy aerospike running a different home directory, such as '/usr/share/aerospike': 33 | 34 | aerospike destroy --home /usr/share/aerospike -------------------------------------------------------------------------------- /pkg/tar/share/man/aerospike-status.man: -------------------------------------------------------------------------------- 1 | .TH "aerospike status" 1 "1 APRIL 2014" "aerospike status" "aerospike manual" 2 | 3 | .SH NAME 4 | 5 | aerospike status \- get the status of aerospike server daemon 6 | 7 | .SH SYNOPSIS 8 | 9 | aerospike status [--home PATH] 10 | 11 | .SH DESCRIPTION 12 | 13 | .PP 14 | Get the status of the aerospike server daemon. The program will assume the current directory is the aerospike home directory. 15 | 16 | To override the home directory, specify the `--home PATH` option. 17 | 18 | .SH OPTIONS 19 | 20 | .IP "--home PATH" 21 | 22 | The directory to use as the aerospike home directory. 23 | 24 | .SH EXAMPLES 25 | 26 | .HP 27 | To status aerospike running in the current directory: 28 | 29 | aerospike status 30 | 31 | .HP 32 | To status aerospike running a different home directory, such as '/usr/share/aerospike': 33 | 34 | aerospike status --home /usr/share/aerospike -------------------------------------------------------------------------------- /pkg/tar/share/lib/aerospike-render.py: -------------------------------------------------------------------------------- 1 | #/usr/bin/python 2 | ''' 3 | SYNOPSIS 4 | 5 | python aerospike-render.py