title: How to change "max_kv_size_per_doc"?
body: <p>I need to change this parameter. Default is 1048576 bytes. I want at least 2097152 bytes.
  I already know this is not recommended for a production environment as I have already read in this forum.</p>
  
  <p>I'm using Couchbase 4.5 with Docker.</p>
  
  <p>I already changed the file "opt/couchbase/etc/couchdb/default.ini" and restarted the container and later the service inside the container. But it doesn't take effect.</p>
  
  <p>I also tried this:
  curl -X POST <a href="http://Administrator:password@localhost:8091/diag/eval" rel="nofollow">http://Administrator:password@localhost:8091/diag/eval</a> -d 'rpc:eval_everywhere(erlang, apply, [fun() -> couch_config:set("mapreduce", "max_kv_size_per_doc", "2097152") end, []]).'</p>
  
  <p>But with no success.</p>
  
  <p>During my tests, I changed the file "opt/couchbase/etc/couchdb/default.ini" to set a new value for the parameter "function_timeout" and it worked. I tested with a sleep inside map function and the log showed timeout error.</p>
  
  <p>It means that when I restart Couchbase it takes the new configuration.
  But change the parameter "max_kv_size_per_doc" makes no difference. Does anyone know why?</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Regards,
  Angelo</p>