Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataStream
    • StreamExecutionEnvironment
    • DataStream
    • Functions
    • State
    • Timer
    • Window
    • Checkpoint
    • Side Outputs
    • Asynchronous I/O
    • Connectors
    • Formats
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink DataStream
  • StreamExecutionEnvironment
  • pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.set_max_parallelism

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.set_max_parallelism#

StreamExecutionEnvironment.set_max_parallelism(max_parallelism: int) → StreamExecutionEnvironment[source]#

Sets the maximum degree of parallelism defined for the program. The upper limit (inclusive) is 32768.

The maximum degree of parallelism specifies the upper limit for dynamic scaling. It also defines the number of key groups used for partitioned state.

Parameters:

max_parallelism – Maximum degree of parallelism to be used for the program, with 0 < maxParallelism <= 2^15.

Returns:

This object.

previous

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.set_parallelism

next

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.register_slot_sharing_group

On this page
  • StreamExecutionEnvironment.set_max_parallelism()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.