ns::stats::SQLiteHistory method history configure (public)

 <instance of ns::stats::SQLiteHistory[i]> history configure \
    -pool pool  [ -retention retention ] [ -maxBytes maxBytes ]

Defined in

Validate the database pool and retention limits, initialize the schema and start a separate persistence callback. Repeated configuration with identical settings is harmless; changing active settings requires disabling persistence first. Return the resulting history status. Does not start sampling. Normalize retention to fractional seconds and maxBytes to bytes with ns_baseunit before validating the bounds.

Switches:
-pool (required)
-retention (optional, defaults to "86400")
-maxBytes (optional, defaults to "67108864")

Testcases:
No testcase defined.
[ show source ]
Show another procedure: