Environment: ubuntu 14.04 LTS, Erlang 19.3-1, libmozjs185-dev libmozjs185-1.0 libicu-dev, Couchdb 2.0 built from source
Everything works perfectly, except posting data to Couchdb over the network results in around 60Kb/sec, whereas any other network operation runs at close to 10MB/sec (this is fast dedicated server with SSD disks).
I am testing just with a simple curl (file.dat is a 5mb file)
time curl -X PUT http://user:pass@myserver.com:port/test/doc1/file.dat -H "Content-Type: application/octet-stream" -d@test.dat
If I run the above command to localhost on the server, it takes 0.1 sec, if I run the command remotely it takes 50 seconds.
If I copy the same file with scp remotely or post it to a simple php page it also runs fast in < 1 sec.
So I am stumped. Tried various attachment buffer settings and delayed_commit but no change.
I enabled debug logging, but no errors or clues.
I installed exactly the same software on another server (configured the same, but in a different data center and works fine there.)
Any ideas appreciated.