Author: Jim Hughes (jnh5y) | Release Target: 0.28.0; 7.3.0 | Status: Merged | Discussion: https://github.com/confluentinc/ksql/pull/9095
tl;dr: Adds the ability to pause the processing of a persistent query.
Users may wish to pause a query for a number of reasons and then resume processing. As examples, users may wish to modify data pipelines built from persistent queries or to manage computational resources.
Presently to manage processing, they would have to terminate a query and recreate it. This approach means that any state would have to be recomputed; the goal of this work is to add the capability to pause processing temporarily while allowing Kafka consumers and state stores to be retained.
Pausing and resuming persistent queries and the necessary language modifications to support this are in scope.
We are not considering the ability to pause and resume transient queries. Additionally, modifying the consumers' state is out of scope. (This would allow for processing to skip records or reprocess data.)
End users will be able to manage query processing once this feature is implemented. For example, this will allow for better control while designing data pipelines. Pausing an upstream query will allow users to update a downstream query or other processing and iterate through design without processing all the data in a stream.
SQL Grammar changes: Add PAUSE , PAUSE ALL, RESUME , RESUME ALL.
For PAUSE <queryID>
and RESUME <queryID>
, appropriate methods on the KafkaStreams
client will be called to pause or
resume (respectively) the topology associated with the query.
For PAUSE ALL
and RESUME ALL
, all persistent queries will be paused or resumed.
The new commands will be written to the command topic. During server restart, the commands will be considered for compaction, and queries will be able to be created in the PAUSED state.
Integration tests will show that
Delivery should be a small number of PRs.
Pages should be made for the two new verbs (PAUSE and RESUME) like (TERMINATE)[https://docs.ksqldb.io/en/latest/developer-guide/ksqldb-reference/terminate/].
No compatibility considerations.
No security considerations.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )