summaryrefslogtreecommitdiffstats
path: root/queue.c
Commit message (Collapse)AuthorAgeFilesLines
* some more 32 bit fun ;)Rainer Gerhards2008-01-311-1/+1
|
* bugfix: having fun with 32/64 bit portability - after 15 years, I finallyRainer Gerhards2008-01-311-7/+7
| | | | | was trapped again ;) -- now fixed, sizes > 2GB supported on 32bit platforms
* - implemented limiting disk space allocated to queuesRainer Gerhards2008-01-301-5/+70
| | | | | - addded $MainMsgQueueMaxDiskSpace config directive - addded $ActionQueueMaxDiskSpace config directive
* - implemented simple output rate limitingRainer Gerhards2008-01-301-0/+11
| | | | | | - addded $ActionQueueDequeueSlowdown config directive - addded $MainMsgQueueDequeueSlowdown config directive - bugfix: MsgDup() did not work with new base object data structure
* fixed a bug that caused $MainMsgQueueCheckpointInterval to work incorrectlyRainer Gerhards2008-01-301-39/+46
|
* - renamed Msg object to usual all-lowercase object name (else we ran intoRainer Gerhards2008-01-301-24/+6
| | | | | | troubles with the framework, also it was somewhat ugly...) - fixed a memory leak in object destruction (was recently introduced by object naming, not present in any released version)
* added ability to re-enqueue objects into the queue when a worker thread isRainer Gerhards2008-01-291-18/+174
| | | | cancelled
* bugfixing newly added action codeRainer Gerhards2008-01-291-0/+1
|
* - fine tuning on queue namingRainer Gerhards2008-01-291-2/+7
| | | | | - action queues are now also named (otherwise you can't read the debug log ;))
* converted queue.c to use dbgoprint() instead of dbgprintf()Rainer Gerhards2008-01-291-114/+72
|
* implemented naming for all objects (mostly as a debug aid, but you neverRainer Gerhards2008-01-291-7/+4
| | | | know what else it will be good for)
* - improved debug support a bit (assertions)Rainer Gerhards2008-01-291-24/+27
| | | | | - restructured code, moved some part out of syslogd.c to action.c, where they belong (still some more to do in that regard ;))
* - implemented the $ActionResumeRetryCount config directiveRainer Gerhards2008-01-281-3/+4
| | | | | | | | | | | | | | | | | | | | | - added queue between main queue and action executor (currently works in "direct" mode only, else crashes) - added $ActionQueueFilename config directive - added $ActionQueueSize config directive - added $ActionQueueHighWaterMark config directive - added $ActionQueueLowWaterMark config directive - added $ActionQueueDiscardMark config directive - added $ActionQueueDiscardSeverity config directive - added $ActionQueueCheckpointInterval config directive - added $ActionQueueType config directive - added $ActionQueueWorkerThreads config directive - added $ActionQueueTimeoutshutdown config directive - added $ActionQueueTimeoutActionCompletion config directive - added $ActionQueueTimeoutenQueue config directive - added $ActionQueueTimeoutworkerThreadShutdown config directive - added $ActionQueueWorkerThreadMinimumMessages config directive - added $ActionQueueMaxFileSize config directive - added $ActionQueueSaveonShutdown config directive
* - added "runtime instrumentation" feature to ./configureRainer Gerhards2008-01-281-4/+0
| | | | - some more cleanup
* cleanup to prepare for releaseRainer Gerhards2008-01-281-55/+29
|
* some more testing and cleanup with the queue class (pretty stable now)Rainer Gerhards2008-01-281-33/+52
|
* fixed queue termination in case bSaveOnShutdown is 0Rainer Gerhards2008-01-271-14/+38
|
* some more fixing and cleanup on the queue shutdown sequenceRainer Gerhards2008-01-271-32/+40
|
* fixed a bug when shutting down DA queueRainer Gerhards2008-01-271-10/+23
|
* reduced number of unnecessary wakeups of DA worker thread when high waterRainer Gerhards2008-01-271-45/+67
| | | | mark is not yet reached
* fixed the situation where message processing could be stalled for someRainer Gerhards2008-01-271-6/+49
| | | | period after DA mode turn off
* partially fixed bug that caused rsyslogd to stall processing enqueuedRainer Gerhards2008-01-261-9/+53
| | | | | | messages after turning off DA mode and before any new message were arrived (if a new message arrived, everything went back to normal, so it was a temporary halt)
* fixed worker timeout which was accidently not set (and thus 0)Rainer Gerhards2008-01-251-0/+2
|
* disk-assisted queue mode finally begins to look good ;)Rainer Gerhards2008-01-251-74/+146
|
* restructured queue shutdown so that the queue timeout is properly appliedRainer Gerhards2008-01-251-97/+159
| | | | before terminatiing the queue
* redesigned queue to utilize helper classes for threading support. This isRainer Gerhards2008-01-241-1161/+418
| | | | | | finally in a running state for regular (non disk-assisted) queues, with a minor nit at shutdown. So I can finally commit the work again to CVS...
* Module OMSNMP intially added, not completed yet.Andre Lorbach2008-01-221-1/+1
|
* some further cleanup on the mutexesRainer Gerhards2008-01-191-116/+62
|
* seperated mutex for queue size management from those for queue threadRainer Gerhards2008-01-191-47/+179
| | | | management
* saving stateRainer Gerhards2008-01-181-72/+102
|
* - created an in-depth description of DA assisted queue modeRainer Gerhards2008-01-181-100/+214
| | | | | - snapshot of new thread coding - DA mode still does not work, but need to save
* fixed sync issue on shutdown process if need to persist pure memory queueRainer Gerhards2008-01-171-8/+32
| | | | to disk
* worked on threadingRainer Gerhards2008-01-171-87/+294
|
* some more cleanup and flagged places where we need to implementRainer Gerhards2008-01-161-35/+13
| | | | DA-input-only mode
* some cleanup and fixesRainer Gerhards2008-01-161-26/+19
|
* implemented dynamic startup and shutdown of worker threads based on currentRainer Gerhards2008-01-161-117/+207
| | | | activity
* cleaned up queue disk startupRainer Gerhards2008-01-161-28/+32
|
* queue is now able to restore persisted state on startup (but still someRainer Gerhards2008-01-161-42/+174
| | | | fine tuning to be done)
* first shot at queue restore on startup, but could not finish before I needRainer Gerhards2008-01-151-1/+62
| | | | to leave ;)
* improved shutdown processing - in-memory queue is now drained to diskRainer Gerhards2008-01-151-5/+31
|
* changed startup of disk assisted mode to allow for higher concurrency, mostRainer Gerhards2008-01-151-121/+155
| | | | | | importantly allow the input to continue enqueue msgs while the disk queue is initialized. This may help somewhat with UDP and other lossy sources
* disk assisted queue works quite well, except for startup from disk queueRainer Gerhards2008-01-151-28/+204
|
* some more work on disk assisted mode (still not complete)Rainer Gerhards2008-01-141-2/+48
|
* begin disk assisted queue memory queue modes (not fully implemented yet)Rainer Gerhards2008-01-141-42/+256
|
* - implemented $MainMsgQueueDiscardMark == 0 --> disable Discard logicRainer Gerhards2008-01-141-3/+6
| | | | - implemented $MainMsgQueueSize == 0 --> no limit on queue size
* also implemented $MainMsgQueueDiscardMark logic on dequeue, changedRainer Gerhards2008-01-141-9/+19
| | | | defaults
* implemented $MainMsgQueueDiscardMar and $MainMsgQueueDiscardSeverity (butRainer Gerhards2008-01-141-2/+19
| | | | serverity needs to be specified numerically for the time being)
* optimized codeRainer Gerhards2008-01-141-3/+4
|
* - implemented config file handlers forRainer Gerhards2008-01-141-0/+4
| | | | | | | | $MainMsgQueueHighWaterMark $MainMsgQueueLowWaterMark $MainMsgQueueDiscardMark $MainMsgQueueDiscardSeverity but did NOT yet implement the functionality behind these directives!
* removed $MainMsgQueueImmediateShutdown config directive and handling, thisRainer Gerhards2008-01-141-1/+0
| | | | | has been superseeded by the Timeout params. Backward compatibility is no concern, no version with that directive was ever released.