While I was importing data into my local setup for development, I’ve noticed that the query service died silently. I have a test script to replicate it in my local server.
My local couchbase and bucket configuration
Cluster RAM Quota
Data RAM Quota: 8586 MB
Index RAM Quota: 1000 MB
Per Node RAM Quota: 2236
I’ve uploaded my test script at https://github.com/moon0326/cbn1qltest
Steps to replicate
- Prepare a bucket and name it ‘test’
- npm install
- node load.js
- node test.js
step #4 kills the server for about 30 seconds then the server becomes accessible again. The problem is that query service does not come up again and there is no log.
When I access cbq, it throws the following error message.
ERROR 100 : Get http://localhost:8093/admin/clusters/default/nodes: dial tcp 127.0.0.1:8093: connection refused
Here are screenshots: http://imgur.com/a/c7P3M
I have a few questions.
- Why is it going down? Without log, I have no clue at all.
- It seems that the query service does not come up again, but the server shows “UP” with green mark. If this happens, how do we detect it?
- How can I prevent this?