Company
Date Published
Author
Drew Bailey
Word count
899
Language
English
Hacker News points
None

Summary

The Nomad 1.0 release includes a new feature called Event Stream, which provides stronger tracing and debuggability for Nomad clusters. This feature allows operators to view and subscribe to a single unified timeline that streams all high-level events to better understand how the cluster is performing. The Event Stream replaces blocking queries, which had drawbacks such as no guarantee of a change or requiring coordination on the client to monitor multiple types of requests. With the Event Stream, operators can easily subscribe to changes within a cluster through a single endpoint and request. The feature creates a set of events when a state change occurs in Nomad, which are then pushed onto the server's event broker. The event broker must be enabled by setting enable_event_broker in the server's configuration block. Operators can access the Event Stream using an HTTP client or programmatically using the Nomad API package. The feature allows for filtering on certain topics and provides a way to subscribe to all events or specific events. The Go package to use Nomad's API makes it easy to subscribe to the event stream from a Go application.