1
0
Fork 0
Commit Graph

31 Commits

Author SHA1 Message Date
Gregory Eremin c7db902da2 Use time.Time.Sub function instead of manipulating nanoseconds 2015-10-27 22:47:36 +03:00
Gregory Eremin 3033508706 Collecting task wait time for workers is no longer necessary 2015-10-27 04:00:41 +03:00
Gregory Eremin 7432c5e0d8 Increase default num workers 2015-10-27 03:56:41 +03:00
Gregory Eremin 61041dbd1b Don't log notices on worker start/stop 2015-10-27 03:56:08 +03:00
Gregory Eremin e21ffb6eb4 There's no need to balance the number of workers
Goroutines are too cheap to bother
2015-10-27 03:52:54 +03:00
Gregory Eremin 850f0033a5 Respect min/max num workers range 2015-10-27 03:42:00 +03:00
Gregory Eremin 4eae1c3b8d Implement configurable scaling PoC 2015-10-27 03:33:04 +03:00
Gregory Eremin b0142de4a7 Make worker pool size, add autoscale option 2015-10-27 03:09:19 +03:00
Gregory Eremin 6f56486566 Move all stats related code to stats package 2015-10-27 02:54:00 +03:00
Gregory Eremin 797e892120 Customizable logger 2015-10-24 19:25:16 +03:00
Gregory Eremin 4465d2c561 Handle worker crashes 2015-10-24 18:49:38 +03:00
Gregory Eremin 2ebd972a34 Add statistics fetcher interface 2015-10-24 18:17:24 +03:00
Gregory Eremin 1550495bf9 Collect task wait statistics 2015-10-24 18:08:12 +03:00
Gregory Eremin bfa1575d79 Add statistics groups 2015-10-24 04:22:02 +03:00
Gregory Eremin 0e1fbbe729 Language 2015-10-24 03:07:47 +03:00
Gregory Eremin 3937c71a42 Skip base function in task name 2015-10-24 02:42:58 +03:00
Gregory Eremin 0e5670707f Add statistics interface 2015-10-24 02:41:19 +03:00
Gregory Eremin d2041b69a1 Handle panic debug on the Satan side 2015-10-24 02:40:20 +03:00
Gregory Eremin 182cfa3e40 Use auto increment value as worker index 2015-10-24 01:04:47 +03:00
Gregory Eremin 0c77cdb096 Reset system task creation time when restarting 2015-10-18 03:49:33 +03:00
Gregory Eremin ef17093207 Now we can safely stop waiting for tasks when shutdown is closed 2015-10-18 03:34:10 +03:00
Gregory Eremin d847be21c6 Make shutdown handling predictable 2015-10-18 03:22:07 +03:00
Gregory Eremin 559886f297 Move task to a separate file, move processing logic to task.process 2015-10-17 06:16:00 +03:00
Gregory Eremin a9a50522fb Always measure task execution time 2015-10-17 05:14:09 +03:00
Gregory Eremin 40dbc556f5 System processes are now named and supervised 2015-10-17 04:51:05 +03:00
Gregory Eremin a8443577d2 Add a comment that is very useful in reading stack traces 2015-10-17 04:31:47 +03:00
Gregory Eremin 87b8e851cc Make Satan not backend opinionated 2015-10-17 03:41:21 +03:00
Gregory Eremin f784e8a2e0 Process tasks until shutdown channel is open 2015-10-16 02:28:40 +03:00
Gregory Eremin 8f35ee060e Kafka backend initializer 2015-10-16 02:28:06 +03:00
Gregory Eremin 4db43004ae Add consumer support to satan 2015-10-16 02:07:04 +03:00
Gregory Eremin a2bfadfa66 Introduce Satan 2015-10-14 04:11:29 +03:00