Skip to content

Instantly share code, notes, and snippets.

@DoomyTheFroomy
Created July 18, 2012 08:36
Show Gist options
  • Save DoomyTheFroomy/3135072 to your computer and use it in GitHub Desktop.
Save DoomyTheFroomy/3135072 to your computer and use it in GitHub Desktop.
CouchDB crashing on aws micro instances

CouchDB is crashing on aws micro instances

When does it happend?

When a large view is requested (many data) or the database is requested to build all views and compact at the same time.

Why this happend?

The beam.smp couchdb process tries to start a new couchjs process which does not get any main memory.

How to fix it?

  1. Open the couchdb configuration
  2. set in Section 'query_server_config' the 'os_process_limit' to '1' (this is the maximum number I figured out for an aws micro instance)

Additions

  1. If you wish to replicate (continous) between two or more couchdb-instances, you'll need to set the 'os_process_limit' to 2. Otherwise the replication takes this process and indexes and so on will never be updatet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment