By default, sampling is enabled and most counters sample data continually with minimal impact on server performance. Counters that may affect performance (intrusive counters) are by default set to off.
When you enable sampling, counters register metrics but do not store them. To store the information, you must also enabling flushing. See “Enabling flushing”.
Most of the parameters described in this section are set at the Replication Server level and affect all counters and/or flushing of all counters. These parameters take effect immediately and do not retain their value after Replication Server shuts down.
However, several module and connection parameters are persistent across Replication Server executions. These parameters include stats_sampling, statss_flush_rssd, stats_reset_afterflush, and stats_daemon_sleep_time. Changes to these parameters take effect immediately and do not require you to reboot Replication Server.
Sybase recommends that you set these parameters immediately after loading the software.
Enabling counter sampling and flushing:
This is a general procedure for enabling sampling and flushing for both intrusive and non-intrusive sampling. Not all steps are required. If you do not want to enable intrusive counters, for example, skip step 2.
This procedure enables sampling and flushing. It provides an easy way to turn sampling and flushing on and off. To turn on flushing for individual threads or modules, see “Configuring modules, connections, and routes”.
Enable sampling of non-intrusive counters using the configure replication server set 'stats_sampling' to 'on' command. The default value is “on.”
Enable sampling of intrusive counters using the admin stats_intrusive_counters, 'on' command. The default value is “off.”
Enable flushing of counters to the RSSD using the configure replication server set 'stats_flush_rssd' to 'on' command. The default value is “off.”
Enable resetting of counters after flushing using the configure replication server set 'stats_reset_afterflush' to 'on' command. The default value is “on.”
Set period, in seconds, between flushes with the configure replication server set 'stats_daemon_sleep_time' to sleeptime command. The default value is 600 seconds.