Skip to content

[CRM] Wait more time for CRM stats to update#1027

Merged
prsunny merged 1 commit intosonic-net:masterfrom
wangxin:crm-wait-pr
Jul 30, 2019
Merged

[CRM] Wait more time for CRM stats to update#1027
prsunny merged 1 commit intosonic-net:masterfrom
wangxin:crm-wait-pr

Conversation

@wangxin
Copy link
Collaborator

@wangxin wangxin commented Jul 24, 2019

Description of PR

Summary:
Fixes # (issue)

CRM testing may fail because CRM stats was not updated yet
while checking the counters. Main purpose of this change is
to increase the time waiting for CRM update from 2 seconds
to 4 seconds.

Two other improvements made in this PR:

  • Decrease the time waiting for CRM counters update from
    300 seconds to 30 seconds. The 300 seconds waiting is
    unnecessary.
  • Use a single redis-cli command to get used and available
    counters rather than two commands.

Type of change

  • Bug fix
  • [] Testbed and Framework(new/improvement)
  • [] Test case(new/improvement)

Approach

How did you do it?

  • Increase the time waiting for CRM counters update from 2 seconds to 4 seconds.
  • Decrease the time waiting for CRM counters update from 300 seconds to 30 seconds.
  • Use a single redis-cli command to get used and available counters rather than two commands.

How did you verify/test it?

Tested on Mellanox platform.

Any platform specific information?

NA

Supported testbed topology if it's a new test case?

NA

Documentation

CRM testing may fail because CRM stats was not updated yet
while checking the counters. Main purpose of this change is
to increase the time waiting for CRM update from 2 seconds
to 4 seconds. Two other improvements:
* Decrease the time waiting for CRM counters update from
300 seconds to 30 seconds. The 300 seconds waiting is
unnecessary.
* Use a single redis-cli command to get used and available
counters rather than two commands.

Signed-off-by: Xin Wang <[email protected]>
@lguohan lguohan requested a review from prsunny July 30, 2019 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants