diff --git a/prestosql/Dockerfile.alpine b/prestosql/Dockerfile.alpine index d119dde..0dd5d2a 100644 --- a/prestosql/Dockerfile.alpine +++ b/prestosql/Dockerfile.alpine @@ -2,10 +2,10 @@ # Dockerfile for prestosql # -FROM openjdk:8-jre-alpine -MAINTAINER kev +FROM openjdk:16-jdk-alpine +MAINTAINER EasyPi Software Foundation -ENV PRESTO_VERSION=322 +ENV PRESTO_VERSION=340 ENV PRESTO_SERVER_URL=https://repo1.maven.org/maven2/io/prestosql/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz ENV PRESTO_CLI_URL=https://repo1.maven.org/maven2/io/prestosql/presto-cli/${PRESTO_VERSION}/presto-cli-${PRESTO_VERSION}-executable.jar ENV PRESTO_HOME=/opt/presto diff --git a/prestosql/Dockerfile.debian b/prestosql/Dockerfile.debian index b192aed..4008dc3 100644 --- a/prestosql/Dockerfile.debian +++ b/prestosql/Dockerfile.debian @@ -2,10 +2,10 @@ # Dockerfile for prestosql # -FROM openjdk:8-jre-slim-buster -MAINTAINER kev +FROM openjdk:16-jdk-slim-buster +MAINTAINER EasyPi Software Foundation -ENV PRESTO_VERSION=322 +ENV PRESTO_VERSION=340 ENV PRESTO_SERVER_URL=https://repo1.maven.org/maven2/io/prestosql/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz ENV PRESTO_CLI_URL=https://repo1.maven.org/maven2/io/prestosql/presto-cli/${PRESTO_VERSION}/presto-cli-${PRESTO_VERSION}-executable.jar ENV PRESTO_HOME=/opt/presto diff --git a/prestosql/README.md b/prestosql/README.md index a3a562d..2806b37 100644 --- a/prestosql/README.md +++ b/prestosql/README.md @@ -23,10 +23,6 @@ $ ansible all -a 'mkdir -p /data' $ docker stack deploy -c docker-stack.yml prestosql -$ docker service update --replicas-max-per-node=1 prestosql_worker - -$ docker service update --replicas=10 prestosql_worker - $ docker ps | grep prestosql_coordinator | awk '{print $1}' 4cc5c6c420d7 diff --git a/prestosql/docker-stack.yml b/prestosql/docker-stack.yml index cdd1540..935ccdf 100644 --- a/prestosql/docker-stack.yml +++ b/prestosql/docker-stack.yml @@ -1,4 +1,4 @@ -version: "3.7" +version: "3.8" services: @@ -24,10 +24,11 @@ services: - /data:/data - prestosql_worker_conf:/opt/presto/etc deploy: - replicas: 0 + replicas: 3 placement: constraints: - node.role == worker + max_replicas_per_node: 1 restart_policy: condition: on-failure depends_on: