Couchbase compaction settings via API -


i'm trying change couchbase servers compaction settings via api. want set time window compactions can run. doing via web console trivial need via script , can't figure out syntax. can change other values purge interval:

curl -u <adminuser>:<password> -d 'paralleldbandviewcompaction=false&purgeinterval=3' <ip>:8091/controller/setautocompaction 

but values allowedtimeperiod ignored. has been able work?

edit

got working, thanks!

you have give 5 values , paralleldbandview value:

curl -u admin:password -d 'paralleldbandviewcompaction=false&allowedtimeperiod[fromhour]=0&allowedtimeperiod[fromminute]=0&allowedtimeperiod[tohour]=2&allowedtimeperiod[tominute]=0&allowedtimeperiod[abortoutside]=false' ip:8091/controller/setautocompaction 

i checked compaction api documentation syntax looks out of date - source can see 4 parameters need are:

allowedtimeperiod[fromhour] allowedtimeperiod[fromminute] allowedtimeperiod[tohour] allowedtimeperiod[tominute] 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -