v0.2.6
Summary: Cluster Task Managment
Details:
- rewrite of the task system to be more like actions
- tasks now live in ./tasks/ in your application root
- tasks can now have their own specific timers
- tasks are now scoped to be "any" or "all", to run once per actionCluster (any) or on all nodes (all)
- Default tasks within the api are now better explained:
- calculateStats
- Polls all other members in the actionCluster to build up statistics
- Runs every 10 seconds
- cleanLogFiles
- removes all files in
./log/
if they are larger thanapi.configData.maxLogFileSize
- runs every 60 seconds
- removes all files in
- cleanOldCacheObjects
- removes expired objects in
api.cache.data
- runs every 10 seconds
- removes expired objects in
- pingSocketClients
- sends a keep-alive message to all TCP socket clients
- runs every 60 seconds
- runAction
- a wrapper to run an action as a task
- will not run automatically
- saveCacheToDisk
- will save the contents of
api.cache.data
to disc - runs every 60 seconds
- will save the contents of
- calculateStats