Skip to content

Commit

Permalink
tmp doc
Browse files Browse the repository at this point in the history
  • Loading branch information
1996fanrui committed Jan 1, 2024
1 parent eb48c0c commit 4984a88
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions flink-autoscaler-standalone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,23 @@ org.apache.flink.autoscaler.standalone.StandaloneAutoscalerEntrypoint \
Updating the `flinkClusterHost` and `flinkClusterPort` based on your flink cluster.
In general, the host and port are the same as Flink WebUI.

### Using the JDBC Autoscaler State Store

Please download JDBC driver first.

```
JDBC_DRIVER_JAR=/Users/fanrui/Downloads/mysql-connector-java-8.0.30.jar
java -cp flink-autoscaler-standalone-1.8-SNAPSHOT.jar:${JDBC_DRIVER_JAR} \
org.apache.flink.autoscaler.standalone.StandaloneAutoscalerEntrypoint \
--flinkClusterHost localhost \
--flinkClusterPort 8081 \
--state-store.type jdbc \
--state-store.jdbc.url jdbc:mysql://localhost:3306/flink_autoscaler \
--state-store.jdbc.username root \
--state-store.jdbc.password 123456
```

## Extensibility of autoscaler standalone

Please click [here](../flink-autoscaler/README.md) to check out extensibility of generic autoscaler.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void realize(Context context, Map<String, String> parallelismOverrides) {

// We have an override for the vertex
var p = Integer.parseInt(overrideStr);
var newParallelism = new JobVertexResourceRequirements.Parallelism(1, p);
var newParallelism = new JobVertexResourceRequirements.Parallelism(p, p);
// If the requirements changed we mark this as scaling triggered
if (!parallelism.equals(newParallelism)) {
entry.setValue(new JobVertexResourceRequirements(newParallelism));
Expand Down

0 comments on commit 4984a88

Please sign in to comment.