Closed zzxgzgz closed 3 years ago
This pull request introduces 22 alerts when merging bcd0d030de447d03414e246d46e2c91ef3fbd40b into 559f2bd90ec4273dfef10024e657739bd4fb6c15 - view on LGTM.com
new alerts:
Adding a sample output of the analysis for your reference:
$ python3 analyze.py ./aca.log ./ncm_log_x.log ./tc.log
Hi
Argument: analyze.py
Argument: ./aca.log
Argument: ./ncm_log_x.log
Argument: ./tc.log
This file has 26497 lines
For keyword [Elapsed time for update goalstate operation took:], there are 33 lines
For On-demand GS process time, the min is 0.0 ms, max is 60.0 ms, mean is 19.000 ms, median is 21.0
For keyword [T3], there are 20 lines
For On-demand call send to receive time (T3 - T1), the min is 92.0 ms, max is 173.0 ms, mean is 146.789 ms, median is 148.0
For keyword [[METRICS] Elapsed time for port operation took:], there are 33 lines
For Port GS Process Time, the min is 0.0 ms, max is 59.0 ms, mean is 7.606 ms, median is 8.0
For keyword [[METRICS] Elapsed time for neighbor operation took:], there are 33 lines
For Neighbor GS Process Time, the min is 0.0 ms, max is 49.0 ms, mean is 9.788 ms, median is 10.0
This file has 8794 lines
For keyword [From received hostOperation to before response], there are 20 lines
For On-demand call received to response sent time (~T3 - T2), the min is 60.0 ms, max is 125.0 ms, mean is 108.850 ms, median is 111.0
For keyword [retrieved vpc resource metadata, elapsed Time in milli seconds:], there are 20 lines
For Retrieve VPC resource metadata time, the min is 5.0 ms, max is 20.0 ms, mean is 16.050 ms, median is 17.0
This file has 2977 lines, total pings: 20, successful_pings: 20, failed pings: 0
For keyword [bytes from], there are 20 lines
For Ping Speed, the min is 95.865 ms, max is 188.29 ms, mean is 155.183 ms, median is 158.5075
Ping speed is as follows:
150.454
95.865
169.558
167.035
128.88
128.794
151.262
175.191
170.386
173.43
131.117
171.236
188.29
183.667
147.877
171.802
165.753
148.696
137.401
146.969
Done printing ping speed
This ACA log file has 20 neighbor IDs
This ACA log file has 20 on-demand call UUIDs
For host operation request grpc delay, the min is 0.0 ms, max is 25.0 ms, mean is 12.150 ms, median is 10.0
For host operation reply grpc delay, the min is 22.0 ms, max is 30.0 ms, mean is 25.100 ms, median is 24.0
There are totally 20 unique neighbor IDs, and 20 of them appear both in ACA and NCM log
For ncm push goalstate grpc delay, the min is 2.0 ms, max is 21.0 ms, mean is 7.400 ms, median is 3.5
For ACA received ncm reply to packet out time, the min is 1.0 ms, max is 15.0 ms, mean is 6.150 ms, median is 4.5
This PR does the following:
Notes:
logging.level.root
inservices/network_config_manager/src/main/resources/application.properties
toDEBUG
, theDEBUG
level equals theLevel.FINE
in the java code.application.properties
, in order to retrive the values correctly, you need to retrieve them in a class that has either@Component
or@Bean
, otherwise, it doesn't work and the value is always the default value of that class, such as 0 for anint
, or null for other Objects.