druid/extensions-core
Clint Wylie 91a37c692d 'suspend' and 'resume' support for supervisors (kafka indexing service, materialized views) (#6234)
* 'suspend' and 'resume' support for kafka indexing service
changes:
* introduces `SuspendableSupervisorSpec` interface to describe supervisors which support suspend/resume functionality controlled through the `SupervisorManager`, which will gracefully shutdown the supervisor and it's tasks, update it's `SupervisorSpec` with either a suspended or running state, and update with the toggled spec. Spec updates are provided by `SuspendableSupervisorSpec.createSuspendedSpec` and `SuspendableSupervisorSpec.createRunningSpec` respectively.
* `KafkaSupervisorSpec` extends `SuspendableSupervisorSpec` and now supports suspend/resume functionality. The difference in behavior between 'running' and 'suspended' state is whether the supervisor will attempt to ensure that indexing tasks are or are not running respectively. Behavior is identical otherwise.
* `SupervisorResource` now provides `/druid/indexer/v1/supervisor/{id}/suspend` and `/druid/indexer/v1/supervisor/{id}/resume` which are used to suspend/resume suspendable supervisors
* Deprecated `/druid/indexer/v1/supervisor/{id}/shutdown` and moved it's functionality to `/druid/indexer/v1/supervisor/{id}/terminate` since 'shutdown' is ambiguous verbage for something that effectively stops a supervisor forever
* Added ability to get all supervisor specs from `/druid/indexer/v1/supervisor` by supplying the 'full' query parameter `/druid/indexer/v1/supervisor?full` which will return a list of json objects of the form `{"id":<id>, "spec":<SupervisorSpec>}`
* Updated overlord console ui to enable suspend/resume, and changed 'shutdown' to 'terminate'

* move overlord console status to own column in supervisor table so does not look like garbage

* spacing

* padding

* other kind of spacing

* fix rebase fail

* fix more better

* all supervisors now suspendable, updated materialized view supervisor to support suspend, more tests

* fix log
2018-09-13 14:42:18 -07:00
..
avro-extensions Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
datasketches Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
druid-basic-security Broker backpressure. (#6313) 2018-09-10 09:33:29 -07:00
druid-kerberos Broker backpressure. (#6313) 2018-09-10 09:33:29 -07:00
hdfs-storage Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
histogram Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
kafka-eight Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
kafka-extraction-namespace Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
kafka-indexing-service 'suspend' and 'resume' support for supervisors (kafka indexing service, materialized views) (#6234) 2018-09-13 14:42:18 -07:00
lookups-cached-global Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
lookups-cached-single Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
mysql-metadata-storage Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
postgresql-metadata-storage Fix PostgreSQLConnectorConfig binding (#6273) 2018-08-31 14:18:29 -07:00
protobuf-extensions Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
s3-extensions Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
simple-client-sslcontext Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00
stats Rename io.druid to org.apache.druid. (#6266) 2018-08-30 09:56:26 -07:00