Changing access log settings
Access log settings determine when the access scanner process initially runs and how often.
Couchbase Server has an optimized disk warmup. Couchbase Server pre-fetches a list of most-frequently accessed keys and fetches these documents first. The server runs a periodic scanner process which determines which keys are most frequently used. The cbepctl flush_param command is used to change the initial time and the interval for the process. For example, the initial time and interval might be changed to accommodate a peak time when an application needs these keys to be quickly available.By default, the scanner process runs once every 24 hours at 10:00 AM GMT.
cbepctl [hostname]:11210 -b [bucket-name] -p [bucket-password] set flush_param alog_sleep_time [value] cbepctl [hostname]:11210 -b [bucket-name] -p [bucket-password] set flush_param alog_task_time [value]
The following example changes the time interval when the access scanner process runs to every 20 minutes.
cbepctl 10.5.2.117:11210 -b foo-bucket -p foo-password set flush_param alog_sleep_time 20
The following example changes the initial time that the access scanner process runs from the 2:00 AM UTC default to 11:00 PM UTC.
cbepctl 10.5.2.117:11210 foo-bucket -p foo-password set flush_param alog_task_time 23
The following example response shows the time interval changed to 20 minutes.
setting param: alog_sleep_time 20 set alog_sleep_time to 20
The following example response shows the initial access scanner run time changed to 11:00 PM UTC.
setting param: alog_task_time 23 set alog_task_time to 23