Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Avoid recursion calls in do_free_vals() | David Sommerseth | 2009-11-10 | 1 | -6/+11 | |
| | ||||||
* | Simplified the API to parse_report() and check_filesize() | David Sommerseth | 2009-11-10 | 1 | -41/+35 | |
| | | | | | Passing threadData_t * directly, instead of several individual parameters deriving from a threadData_t pointer. | |||||
* | Corrected comments | David Sommerseth | 2009-11-10 | 1 | -2/+4 | |
| | ||||||
* | Cosmetic fix | David Sommerseth | 2009-11-10 | 1 | -1/+1 | |
| | ||||||
* | Fixed a misleading log message during shutdown and a tiny memleak | David Sommerseth | 2009-11-10 | 1 | -3/+2 | |
| | ||||||
* | Added new config parameter: max_report_size | David Sommerseth | 2009-11-10 | 6 | -7/+55 | |
| | | | | | | | | | | | | To avoid potential DoS attacks by sending big XML files, the max_report_size rejects reports which is bigger than this value. The default value is 2MB if this value is not configured. A new status code was introduced, STAT_FTOOBIG (12). The submissionqueue record will be updated with this value on records which fails this check. In addition minor SIGSEGV failure was fixed when rteval_parserd shutsdown before worker threads have really started. | |||||
* | Fixed potential thread collision with oid return values | David Sommerseth | 2009-11-10 | 1 | -3/+4 | |
| | ||||||
* | autotoolised rteval_parserd | David Sommerseth | 2009-11-05 | 5 | -13/+1266 | |
| | ||||||
* | Merge branch 'master_ipv4' into clark | David Sommerseth | 2009-10-26 | 34 | -238/+4931 | |
|\ | | | | | | | | | | | Conflicts: Makefile rteval.spec | |||||
| * | Added xmlrpc mod_python stuff into rteval.spec file | David Sommerseth | 2009-10-26 | 2 | -11/+14 | |
| | | | | | | | | | | | | Rewrote the server/install.sh a little bit and moved out the apache conf generation to server/gen_config.sh which is also used by the rteval.spec file. | |||||
| * | Cleaned up the XML-RPC server | David Sommerseth | 2009-10-26 | 6 | -227/+17 | |
| | | | | | | | | | | | | Removed code not needed any more and updated README with correct information. This is all connected to the introduction of the rteval_parserd process, which is found in ./parser. | |||||
| * | Fixed a memory leak introduced in commit 70c850c13dabed16a69b | David Sommerseth | 2009-10-23 | 1 | -0/+1 | |
| | | ||||||
| * | Get rid of the sleep() calls and use blocking POSIX MQ calls | David Sommerseth | 2009-10-23 | 2 | -12/+41 | |
| | | | | | | | | | | This way, the rteval_parserd will also shutdown almost instantly unless one of the threads are in the progress of parsing a report. | |||||
| * | Improved robustness of database connections and thread control | David Sommerseth | 2009-10-23 | 3 | -19/+88 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both the process_submission_queue() and parserthread() functions now make use of db_ping() to make sure they have an alive database connection. And if not, trigger the needed notifications. If the process_submission_queue() looses the database connection completely, it will shutdown rteval_parserd immediately. If the parserthread()s looes the database connection, it will reduce the activethreads counter. And if this counter reaches 0, it will signal the main thread which initiates a complete shutdown of rteval_parserd. Btw. db_ping() will indeed try to restore the database connection before presuming the database is unavailable. | |||||
| * | Added db_ping() function and made db_wait_notification() more solid | David Sommerseth | 2009-10-23 | 2 | -0/+49 | |
| | | ||||||
| * | Extract kthreads and services info from XML reports | David Sommerseth | 2009-10-23 | 1 | -1/+1 | |
| | | ||||||
| * | Added README | David Sommerseth | 2009-10-22 | 1 | -0/+134 | |
| | | ||||||
| * | Added simple Makefile, before it's automated completely | David Sommerseth | 2009-10-22 | 1 | -0/+13 | |
| | | ||||||
| * | Fixed doxygen errors | David Sommerseth | 2009-10-22 | 9 | -13/+55 | |
| | | ||||||
| * | Added daemonising of the process | David Sommerseth | 2009-10-22 | 1 | -12/+80 | |
| | | | | | | | | | | And fixed an error when the program exits before POSIX MQ queue is opened and initialised. | |||||
| * | If logging to file, fflush() on each writelog() call | David Sommerseth | 2009-10-22 | 1 | -0/+4 | |
| | | ||||||
| * | Make use of the 'threads' config/argument setting | David Sommerseth | 2009-10-22 | 1 | -1/+7 | |
| | | ||||||
| * | Added --help|-h with usage info, added missing --threads|-t argument | David Sommerseth | 2009-10-22 | 1 | -7/+67 | |
| | | ||||||
| * | Implemented argument parsing | David Sommerseth | 2009-10-22 | 3 | -9/+25 | |
| | | ||||||
| * | Changed log level argument from int to char * | David Sommerseth | 2009-10-22 | 2 | -3/+43 | |
| | | | | | | | | | | Makes it easier to implement log parameters from argument parsing or config file | |||||
| * | Added argument parser source files | David Sommerseth | 2009-10-22 | 2 | -0/+112 | |
| | | ||||||
| * | Added missing #include | David Sommerseth | 2009-10-22 | 1 | -0/+1 | |
| | | ||||||
| * | Logging to syslog by default. Fixed a typo | David Sommerseth | 2009-10-22 | 1 | -2/+2 | |
| | | ||||||
| * | Fixed memory leak in db_connect() | David Sommerseth | 2009-10-22 | 1 | -0/+1 | |
| | | | | | | | | | | The memory region needed for the dbconn structure was not released in db_disconnect(). This leak was introduced in commit 9526e7d8844a47fa | |||||
| * | Improved overall logging information | David Sommerseth | 2009-10-22 | 10 | -122/+173 | |
| | | ||||||
| * | Added missing log.[ch] files | David Sommerseth | 2009-10-22 | 2 | -0/+185 | |
| | | ||||||
| * | Fixed missing initialisation - causing SEGV during exit if not calloc'ed | David Sommerseth | 2009-10-22 | 1 | -1/+1 | |
| | | ||||||
| * | First cut at implementing a generic logger | David Sommerseth | 2009-10-21 | 15 | -234/+309 | |
| | | ||||||
| * | Moved status codes into its own header file | David Sommerseth | 2009-10-21 | 4 | -12/+41 | |
| | | ||||||
| * | Corrected missing or misleading doxygen comments | David Sommerseth | 2009-10-21 | 7 | -28/+69 | |
| | | ||||||
| * | Fixed a couple of memory leaks in db_wait_notification() | David Sommerseth | 2009-10-21 | 1 | -0/+3 | |
| | | ||||||
| * | Implemented database LISTEN via db_wait_notification() | David Sommerseth | 2009-10-21 | 3 | -5/+92 | |
| | | | | | | | | | | | | | | | | | | | | | | | | This introduces async waiting for report parsing. Commit 2584a3c36c97c757dc80108b898eede52b91dc44 introduced sending a NOTIFY whenever an INSERT is done into the submissionqueue table. With the db_wait_notification() the process_submission_queue() function will sleep until a a notification is received. The LISTEN, UNLISTEN and NOTIFY SQL commands are PostgreSQL dependent. Other database implementations may use what that database supports, or just simply do a sleep() to change the behaviour to a polling model. | |||||
| * | Extended rtevalruns table to contain a submid field | David Sommerseth | 2009-10-21 | 6 | -4/+18 | |
| | | | | | | | | | | This new field references submissionqueue.submid, to keep a link between parsed rtevalruns and the original submission. | |||||
| * | Simplified and made the get_destination_path() function more robust | David Sommerseth | 2009-10-21 | 3 | -48/+39 | |
| | | | | | | | | Also added missing error check of the result of the function call | |||||
| * | Added another missing file | David Sommerseth | 2009-10-21 | 1 | -0/+36 | |
| | | ||||||
| * | Added missing rteval_parserd ... with the needed main() function | David Sommerseth | 2009-10-21 | 1 | -0/+342 | |
| | | ||||||
| * | Added error message when submissionqueue update to STAT_INPROG fails | David Sommerseth | 2009-10-21 | 1 | -0/+5 | |
| | | ||||||
| * | Added logic to move parsed files into a specified report directory. | David Sommerseth | 2009-10-20 | 6 | -45/+233 | |
| | | | | | | | | | | This directory is set in the 'xmlrpc_parser' section, with 'reportdir'. If this is not set, it defaults to /var/lib/rteval/reports. | |||||
| * | Fixed a memory leak | David Sommerseth | 2009-10-20 | 1 | -1/+3 | |
| | | ||||||
| * | Added support for histogram data for cyclictest | David Sommerseth | 2009-10-20 | 2 | -43/+60 | |
| | | ||||||
| * | Fixed typos | David Sommerseth | 2009-10-20 | 1 | -3/+3 | |
| | | ||||||
| * | Added another database user account, and renamed the old one | David Sommerseth | 2009-10-19 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | rtevxmlrpc - the user account the XML-RPC process uses rtevparser - the user the rteval_parserd program uses Adopted the right user levels to each table to this new setup | |||||
| * | Big rewrite, but now a working rteval_parserd process is ready | David Sommerseth | 2009-10-19 | 5 | -67/+222 | |
| | | | | | | | | | | Need to add daemonizing mode, add proper logging and fix all FIXME's in the code | |||||
| * | Added a missing status level | David Sommerseth | 2009-10-15 | 2 | -12/+13 | |
| | | ||||||
| * | Rearrenged return codes from parsethread() | David Sommerseth | 2009-10-15 | 2 | -14/+22 | |
| | |