This is an automated email from the ASF dual-hosted git repository. fanrui pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
commit 37ca517f33c65c0a60eb54b90db85408124b45d4 Author: Rui Fan <[email protected]> AuthorDate: Wed Jan 31 17:39:04 2024 +0800 [FLINK-33636][autoscaler] Document the JDBC Autoscaler event handler --- docs/content/docs/custom-resource/autoscaler.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/content/docs/custom-resource/autoscaler.md b/docs/content/docs/custom-resource/autoscaler.md index cfe71799..56b42a4f 100644 --- a/docs/content/docs/custom-resource/autoscaler.md +++ b/docs/content/docs/custom-resource/autoscaler.md @@ -273,7 +273,7 @@ org.apache.flink.autoscaler.standalone.StandaloneAutoscalerEntrypoint \ Updating the `autoscaler.standalone.fetcher.flink-cluster.host` and `autoscaler.standalone.fetcher.flink-cluster.port` based on your flink cluster. In general, the host and port are the same as Flink WebUI. -### Using the JDBC Autoscaler State Store +### Using the JDBC Autoscaler State Store & Event Handler A driver dependency is required to connect to a specified database. Here are drivers currently supported, please download JDBC driver and initialize database and table first. @@ -286,16 +286,17 @@ please download JDBC driver and initialize database and table first. ``` JDBC_DRIVER_JAR=./mysql-connector-java-8.0.30.jar -# export the password of jdbc state store -export STATE_STORE_JDBC_PWD=123456 +# export the password of jdbc state store & jdbc event handler +export JDBC_PWD=123456 java -cp flink-autoscaler-standalone-{{< version >}}.jar:${JDBC_DRIVER_JAR} \ org.apache.flink.autoscaler.standalone.StandaloneAutoscalerEntrypoint \ --autoscaler.standalone.fetcher.flink-cluster.host localhost \ --autoscaler.standalone.fetcher.flink-cluster.port 8081 \ --autoscaler.standalone.state-store.type jdbc \ ---autoscaler.standalone.state-store.jdbc.url jdbc:mysql://localhost:3306/flink_autoscaler \ ---autoscaler.standalone.state-store.jdbc.username root +--autoscaler.standalone.event-handler.type jdbc \ +--autoscaler.standalone.jdbc.url jdbc:mysql://localhost:3306/flink_autoscaler \ +--autoscaler.standalone.jdbc.username root ``` All supported options for autoscaler standalone can be viewed
