- 08 Aug, 2012 31 commits
-
-
Naoki Kambe authored
- moved b10-config_test.db from src/bin/stats/tests to src/bin/stats/tests/testdata - renamed its name to b10-config.db - changed its format to multiline These changes are due to the reviewer's comment.
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Naoki Kambe authored
A list of instances for stats to request is obtained from the show_processes command of Boss instead of asking the components config of Boss.
-
Naoki Kambe authored
This information is used for other module e.g. stats to count running instances of same module. The address information is seen in the third index of the array.
-
Naoki Kambe authored
It returns the "_address" attribute of the classes. This is used for the "show_processes" command of Boss to provide address information.
-
Naoki Kambe authored
The stats module decides if polling should be done by the the last time of polling. If more than one seconds past since the last request to each module, the stats module requests each module statistics data and then shows the latest result. Otherwise, the stats module just shows statistics data which it has.
-
Naoki Kambe authored
In the updating process, it communicates with the cfgmgr module for updating statistics specification of each module. This fix is for separating such mixed communication process.
-
Naoki Kambe authored
- Fixed the incorrect previous fix. There should not be the inconsistency on number of mock Auth instances on both test scripts: b10-stats_test.py and b10-stats-httpd_test.py. In the previous change, there was the inconsistency in MockBoss class. Actually in b10-stats-httpd_test.py, the number of auth instances which Cfgmgr answers was four, but the number of actually invoked auth instances was one. - Reduce the number of invoked mock Auth instances In theses test scripts, multiple Auth instances need to be invoked. But if four instances are actually invoked in these scripts, open files(ulimit -n) exceeds 256. In the environment where ulimit -n was set to 256, the b10-stats-httpd_test.py test failed actually. In that case, b10-stats-httpd_test.py needs open files more than 256. So the number of the auth instances in mock modules was reduced into 2 in the scripts. This fix is for the comment at #2136.
-
Naoki Kambe authored
The extra MockAuth objects didn't shut down in BaseModules.shutdown(). But these weren't needed for unittest of stats httpd. So setting up and shutting up of them were moved to b10-stats_test.py from test_utils.py.
-
JINMEI Tatuya authored
-
Naoki Kambe authored
-
Naoki Kambe authored
-
Naoki Kambe authored
integer
-
Naoki Kambe authored
polling
-
Naoki Kambe authored
-
Naoki Kambe authored
-
Naoki Kambe authored
do_polling for efficiency Also added setting timeout value to one second for precise and refactoring timeout handling
-
Naoki Kambe authored
module
-
Naoki Kambe authored
-
Naoki Kambe authored
Changes in b10-stats_test.py: - added deeply checking statistics values of each of module and instance - added stats_server.shutdown() at the end of the test_config method. Because the running stats_server was never shut down even after stats_server.run() was invoked. Changes in test_utils.py: - Changed the way of invoking multiple auth instances just for efficiency
-
Naoki Kambe authored
the second argument of the the 'update_statistics_data' method Instead of PID(Process Id) used in previous version of stats codes, 'mid' (module id) is used for identifying multiple instances of same module. 'lname' of CC-session in stats codes is assigned to it.
-
Naoki Kambe authored
-
Naoki Kambe authored
The description about 'set' command was removed from the manpages, and A 'poll-interval' config item was introduced into the manpages. Also the implement, the testcases and specification related to the set command were removed from source codes and the specfile.
-
- 24 Jul, 2012 4 commits
-
-
Naoki Kambe authored
one while stats module is working also system test of statistics is disabled until codes of both Boss(#2137) and Auth(#2138) due to their dependencies
-
Naoki Kambe authored
-
Naoki Kambe authored
* change of b10-config dbfile * update specfile of MockBoss * invoking three extra Auth modules at a time in the BaseModules class * implement 'getstats' command in each mock module
-
Naoki Kambe authored
since stats doesn't request only boss but request every module
-
- 22 Jul, 2012 5 commits
-
-
Naoki Kambe authored
Mock boss Stats module asks cfgmgr components of boss config. This test db file contains test components of boss. Data of components are assumed to be used only for counting number of multi intances. Here the module of the multi instances is Auth.
-
Naoki Kambe authored
Because that is already done while creating a BaseModules object at the setUp method
-
Naoki Kambe authored
- update last_update_time when initially updating statistics of stats - strict validation check of poll-interval - move the code requesting to boss inside of the main loop
-
Naoki Kambe authored
-
Naoki Kambe authored
-