SG Accelerator documentation


With SG1.2 there is a new functionality named accelerator. Despite having searched in different places, I have not been able to found out any documentation on it.I more or less understood (but may be I am wrong here) that SG accelerator refers to the ability to use a distributed index to handle sequence’s replications numbers.
If indeed it refers to distributed index, it will be very useful to have information on:

  • how to set it up
  • a kind of target architecture diagram with data workflows
    If it refers to something else, back to my original question about its documentation and expected benefits.

One more word, we are currently in the process of using and benchmarking SG in a very demanding environment (with couchbase lite phonegap for both IOS and Android and some backend servers in GO), nginx and couchbase DB server, and we will be happy to work closely with SG team to share our results and findings.


I am running example couchbase-sg-accel by

./bin/sync_gateway ./examples/basic_sg_accel_config.json

but I got nothing but:

2016-07-11T17:05:02.588+08:00 Enabling logging: [HTTP+]
2016-07-11T17:05:02.589+08:00 PANIC: SG is running in normal mode but there are databases configured as index writers -- rest.ValidateConfigOrPanic() at config.go:688
panic: SG is running in normal mode but there are databases configured as index writers

goroutine 1 [running]:, 0x50, 0x0, 0x0, 0x0)
	/Users/jenkins/jenkins/workspace/sync-gateway-unix-builds/release/1.2.1/enterprise/app-under-test/sync_gateway/src/ +0x107
	/Users/jenkins/jenkins/workspace/sync-gateway-unix-builds/release/1.2.1/enterprise/app-under-test/sync_gateway/src/ +0xae
	/Users/jenkins/jenkins/workspace/sync-gateway-unix-builds/release/1.2.1/enterprise/app-under-test/sync_gateway/src/ +0x2a
	/Users/jenkins/jenkins/workspace/sync-gateway-unix-builds/release/1.2.1/enterprise/app-under-test/sync_gateway/src/ +0x133

goroutine 17 [syscall, locked to thread]:
	/usr/local/go/src/runtime/asm_amd64.s:1721 +0x1

goroutine 19 [syscall]:
	/usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
	/usr/local/go/src/os/signal/signal_unix.go:28 +0x37

goroutine 23 [select, locked to thread]:
runtime.gopark(0x4bc36b8, 0xc82002a728, 0x4986bb8, 0x6, 0x18, 0x2)
	/usr/local/go/src/runtime/proc.go:185 +0x163
runtime.selectgoImpl(0xc82002a728, 0x0, 0x18)
	/usr/local/go/src/runtime/select.go:392 +0xa64
	/usr/local/go/src/runtime/select.go:212 +0x12
	/usr/local/go/src/runtime/signal1_unix.go:227 +0x323
	/usr/local/go/src/runtime/asm_amd64.s:1721 +0x1

goroutine 24 [chan receive]:
	/Users/jenkins/jenkins/workspace/sync-gateway-unix-builds/release/1.2.1/enterprise/app-under-test/sync_gateway/src/ +0x51
created by main.main
	/Users/jenkins/jenkins/workspace/sync-gateway-unix-builds/release/1.2.1/enterprise/app-under-test/sync_gateway/src/ +0x12a

It really confuse me :
Q1: What is couchbase-sg-accel? ( What is the difference between Couchbase-sg and couchbase-sg-accel)
Q2: How should I use couchbase-sg-accel?

Have you seen the developer documentation at ?

Sorry this wasn’t answered earlier. Accelerator has been under development. Stay tuned for an announcement about it coming very soon.