Flow control and load shedding - CS 591 K1: Data Stream Processing and Analytics Spring 2020process events. • What happens if consumers cannot keep up with the event rate? • drop messages • buffer messages in a queue: what if the queue grows larger than available memory? 2 ??? Vasiliki Kalavri process events. • What happens if consumers cannot keep up with the event rate? • drop messages • buffer messages in a queue: what if the queue grows larger than available memory? • block the producer Vasiliki Kalavri | Boston University 2020 22 ??? Vasiliki Kalavri | Boston University 2020 22 Durably buffer events in a channel or source Adjust processing rate of all operators to that of the slowest0 码力 | 43 页 | 2.42 MB | 1 年前3
Elasticity and state migration: Part I - CS 591 K1: Data Stream Processing and Analytics Spring 2020block channels and upstream operators buffer incoming records ??? Vasiliki Kalavri | Boston University 2020 Pause-and-restart state migration 32 buffer incoming records block channels and Vasiliki Kalavri | Boston University 2020 Pause-and-restart state migration 32 re-configure buffer incoming records block channels and upstream operators • State is scoped to a single task Boston University 2020 Pause-and-restart state migration 32 re-configure state load state load buffer incoming records block channels and upstream operators • State is scoped to a single task0 码力 | 93 页 | 2.42 MB | 1 年前3
High-availability, recovery semantics, and guarantees - CS 591 K1: Data Stream Processing and Analytics Spring 2020store in local buffer and possibly update state 3. produce output 5 mi mo Vasiliki Kalavri | Boston University 2020 What is a failure? op 1. receive an event 2. store in local buffer and possibly Kalavri | Boston University 2020 What is a failure? op 1. receive an event 2. store in local buffer and possibly update state 3. produce output 5 mi mo Was mi fully processed? Was mo delivered Kalavri | Boston University 2020 What is a failure? op 1. receive an event 2. store in local buffer and possibly update state 3. produce output What can go wrong: • lost events • duplicate or0 码力 | 49 页 | 2.08 MB | 1 年前3
监控Apache Flink应用程序(入门)are processed by Flink (see previous section). 3. Some operators in a streaming topology need to buffer events for some time (e.g. in a time window) for functional reasons. 4. Each computation in your the JVM for the direct buffer pool (in bytes). Status.JVM.Memory.Mapped.Me moryUsed job-/ taskmana ger The amount of memory used by the JVM for the mapped buffer pool (in bytes). Status0 码力 | 23 页 | 148.62 KB | 1 年前3
Streaming optimizations - CS 591 K1: Data Stream Processing and Analytics Spring 2020threads of control • avoid communication cost without losing pipeline parallelism • use a shared buffer for communication • Fused filters / projections at the source can significantly reduce I/O and process, the sender task serializes the outgoing records into a byte buffer. • A TaskManager needs one dedicated network buffer for each receiving task that any of its tasks need to send data to0 码力 | 54 页 | 2.83 MB | 1 年前3
Stream ingestion and pub/sub systems - CS 591 K1: Data Stream Processing and Analytics Spring 2020consumers always online 5 Message queues • Asynchronous point-to-point communication • Lightweight buffer for temporary storage • Messages stored on the queue until they are processed and deleted • transactional0 码力 | 33 页 | 700.14 KB | 1 年前3
Streaming in Apache FlinkKeyedProcessFunction{ /* we'll use a PriorityQueue to buffer not-yet-fully-sorted events */ private ValueState > queueState 0 码力 | 45 页 | 3.00 MB | 1 年前3
PyFlink 1.15 Documentationpyx", line 244, in pyflink.fn_execution.coder_ ˓→impl_fast.FlattenRowCoderImpl._encode_one_row_to_buffer File "pyflink/fn_execution/coder_impl_fast.pyx", line 550, in pyflink.fn_execution.coder_ ˓→impl_fast0 码力 | 36 页 | 266.77 KB | 1 年前3
PyFlink 1.16 Documentationpyx", line 244, in pyflink.fn_execution.coder_ ˓→impl_fast.FlattenRowCoderImpl._encode_one_row_to_buffer File "pyflink/fn_execution/coder_impl_fast.pyx", line 550, in pyflink.fn_execution.coder_ ˓→impl_fast0 码力 | 36 页 | 266.80 KB | 1 年前3
共 9 条
- 1













