All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.flink.configuration.QueryableStateOptions Maven / Gradle / Ivy

There is a newer version: 1.20.0
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.flink.configuration;

import org.apache.flink.annotation.PublicEvolving;

import static org.apache.flink.configuration.ConfigOptions.key;

/**
 * The set of configuration options relating to Queryable State.
 */
@PublicEvolving
public class QueryableStateOptions {

	// ------------------------------------------------------------------------
	// Server Options
	// ------------------------------------------------------------------------

	/**
	 * The config parameter defining the server port range of the queryable state proxy.
	 *
	 * 

A proxy runs on each Task Manager, so many proxies may run on the same * machine. * *

Given this, and to avoid port clashes, the user can specify a port range and * the proxy will bind to the first free port in that range. * *

The specified range can be: *

    *
  1. a port: "9123", *
  2. a range of ports: "50100-50200", or *
  3. a list of ranges and ports: "50100-50200,50300-50400,51234" *
* *

The default port is 9069. */ public static final ConfigOption PROXY_PORT_RANGE = key("query.proxy.ports") .defaultValue("9069") .withDescription("The port range of the queryable state proxy. The specified range can be a single " + "port: \"9123\", a range of ports: \"50100-50200\", " + "or a list of ranges and ports: \"50100-50200,50300-50400,51234\"."); /** Number of network (event loop) threads for the client proxy (0 => #slots). */ public static final ConfigOption PROXY_NETWORK_THREADS = key("query.proxy.network-threads") .defaultValue(0) .withDescription("Number of network (Netty's event loop) Threads for queryable state proxy."); /** Number of async query threads for the client proxy (0 => #slots). */ public static final ConfigOption PROXY_ASYNC_QUERY_THREADS = key("query.proxy.query-threads") .defaultValue(0) .withDescription("Number of query Threads for queryable state proxy. Uses the number of slots if set to 0."); /** * The config parameter defining the server port range of the queryable state server. * *

A state server runs on each Task Manager, so many server may run on the same * machine. * *

Given this, and to avoid port clashes, the user can specify a port range and * the server will bind to the first free port in that range. * *

The specified range can be: *

    *
  1. a port: "9123", *
  2. a range of ports: "50100-50200", or *
  3. a list of ranges and ports: "50100-50200,50300-50400,51234" *
* *

The default port is 9067. */ public static final ConfigOption SERVER_PORT_RANGE = key("query.server.ports") .defaultValue("9067") .withDescription("The port range of the queryable state server. The specified range can be a single " + "port: \"9123\", a range of ports: \"50100-50200\", " + "or a list of ranges and ports: \"50100-50200,50300-50400,51234\"."); /** Number of network (event loop) threads for the KvState server (0 => #slots). */ public static final ConfigOption SERVER_NETWORK_THREADS = key("query.server.network-threads") .defaultValue(0) .withDescription("Number of network (Netty's event loop) Threads for queryable state server."); /** Number of async query threads for the KvStateServerHandler (0 => #slots). */ public static final ConfigOption SERVER_ASYNC_QUERY_THREADS = key("query.server.query-threads") .defaultValue(0) .withDescription("Number of query Threads for queryable state server. Uses the number of slots if set to 0."); // ------------------------------------------------------------------------ // Client Options // ------------------------------------------------------------------------ /** Number of network (event loop) threads for the KvState client (0 => Use number of available cores). */ public static final ConfigOption CLIENT_NETWORK_THREADS = key("query.client.network-threads") .defaultValue(0) .withDescription("Number of network (Netty's event loop) Threads for queryable state client."); // ------------------------------------------------------------------------ /** Not intended to be instantiated. */ private QueryableStateOptions() { } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy