Skip to content

Commit c51776e

Browse files
committed
Enable queue stats counter with interval of 10 seconds
We wanted the queue stats to be enabled with high interval, also this is to fix below errors in snmp agent: May 16 07:44:14.812487 lnos-x1-a-asw03 ERR snmp-subagent [sonic_ax_impl] ERROR: No queue stat counters found in the Counter DB. SyncD database is incoherent. May 16 07:44:14.812981 lnos-x1-a-asw03 ERR snmp-subagent [ax_interface] ERROR: MIBUpdater.start() caught an unexpected exception during update_data()sonic-net#12 Traceback (most recent call last):sonic-net#12 File "/usr/local/lib/python3.6/dist-packages/ax_interface/mib.py", line 40, in start#012 self.reinit_data()sonic-net#12 File "/usr/local/lib/python3.6/dist-packages/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py", line 79, in reinit_data#012 mibs.init_sync_d_queue_tables(self.db_conn)sonic-net#12 File "/usr/local/lib/python3.6/dist-packages/sonic_ax_impl/mibs/__init__.py", line 220, in init_sync_d_queue_tables#012 raise RuntimeError('The queue_stat_map is not defined')sonic-net#12 RuntimeError: The queue_stat_map is not defined
1 parent 0591513 commit c51776e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orchagent/portsorch.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ extern CrmOrch *gCrmOrch;
3535
#define DEFAULT_VLAN_ID 1
3636
#define PORT_FLEX_STAT_COUNTER_POLL_MSECS "1000"
3737

38-
/* Use interval 0 to disable queue polling thread */
39-
#define QUEUE_FLEX_STAT_COUNTER_POLL_MSECS "0"
38+
/* queue polling thread interval is set to 10 seconds */
39+
#define QUEUE_FLEX_STAT_COUNTER_POLL_MSECS "10000"
4040
#define PORT_STAT_COUNTER_FLEX_COUNTER_GROUP "PORT_STAT_COUNTER"
4141
#define QUEUE_STAT_COUNTER_FLEX_COUNTER_GROUP "QUEUE_STAT_COUNTER"
4242

0 commit comments

Comments
 (0)