17 Commits
Author SHA1 Message Date
Ronak Nathani d7ba03a966 Improves leader election so that we don't lose events (#153)
Currently, when a replica loses its leadership, a new leader isn't elected until leaseDuration seconds.
Here, that is 15s. The max time till we get a new leader is leaseDuration (15s) + retryPeriod (2s) = 17s.

This commit updates the shutdown process such that if the leader replica is sent a shutdown signal,
it sleeps for leaseDuration seconds. This allows the leader replica to continue to export events until
a new leader is elected. And a new leader is elected only if lease hasn't been renewed and leaseDuration expires.

In addition to this, leader election now uses the leases object instead of configMaps and leases. The clusterRole
is also updated to allow writing to the leases object.

For use cases where no event loss is tolerable, users should use maxEventAgeSeconds to > 1.
2024-02-23 08:26:06 +03:00
Ivan Kovnatsky 727557f597 Remove namespace configuration from deployment (#123)
* Remove namespace configuration from deployment

* Add kubectl command to create namespace to readme
2023-09-07 08:50:34 +03:00
Kazuki Suda b7a82d3028 Adopt Pod Security Admission "restricted" policy (#100) 2023-07-06 19:38:20 +03:00
Biriukov Sergei 9aa12cfe43 consolidate metrics code in a single package, add metrics prefix config option (#55) 2023-03-17 09:29:05 +03:00
Biriukov Sergei 0ee3988b69 use custom role with wider read permissions (#39) 2022-12-19 10:50:53 +03:00
Mustafa Akın ce8f53590f Added Prometheus annotaitons to deployment 2022-09-15 11:24:01 +03:00
Mustafa Akın 91d7d8fa80 Renamed the deployment.yaml to latest one 2022-07-25 16:48:26 -04:00
Mustafa Akın 5d9d82e7dc remove managed fields from event becasue its useless 2021-11-06 13:54:58 +03:00
Mustafa Akın 7bb80521d1 Config files updated to reflect Github Registry and stdout 2021-06-17 00:17:55 +03:00
Mustafa Akın bad127009b Release version 0.9 2020-08-22 18:36:13 +03:00
Mustafa Akin fee89514e8 better default config to log to stdout, debug log added for involved object capturing 2020-06-22 18:17:18 +03:00
Mustafa Akin d6b6842ceb Updated Dockerfile for 1.14 and the deployment YAML 2020-05-02 02:03:37 +03:00
Mustafa Akın 90b9f3c776 Bump deployment version to 0.6 2020-04-10 16:25:24 +03:00
Mustafa Akin 845db062ad Kafka added to readme, config deployment fix for elastic 2019-12-22 20:55:41 +03:00
Mustafa Akin 14d0120c11 Added LICENSE, changed the Docker image, fixed the deployment RBAC 2019-12-13 14:49:38 +03:00
Mustafa Akin 45cf57c7f9 Modified README and fixed minor bugs 2019-12-09 14:09:26 +03:00
Mustafa Akin b146fbb507 Added testing pipeline, deployment and configuration docs 2019-12-08 21:05:51 +03:00