2017-07-13 18:25:26 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
~ Copyright 2016 Red Hat, Inc. and/or its affiliates
|
|
|
|
~ and other contributors as indicated by the @author tags.
|
|
|
|
~
|
|
|
|
~ Licensed 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.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
<parent>
|
|
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
|
|
<artifactId>performance</artifactId>
|
2017-12-21 12:57:06 +00:00
|
|
|
<version>4.0.0.CR1-SNAPSHOT</version>
|
2017-07-13 18:25:26 +00:00
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>performance-tests</artifactId>
|
|
|
|
<name>Keycloak Performance TestSuite - Tests</name>
|
|
|
|
|
|
|
|
<properties>
|
2017-11-14 18:58:55 +00:00
|
|
|
<provisioner>docker-compose</provisioner>
|
|
|
|
<deployment>singlenode</deployment>
|
|
|
|
|
|
|
|
<provisioned.system.properties.file>${project.build.directory}/provisioned-system.properties</provisioned.system.properties.file>
|
|
|
|
|
|
|
|
<!-- Keycloak Server Settings -->
|
|
|
|
<keycloak.scale/>
|
|
|
|
<keycloak.dc1.scale/>
|
|
|
|
<keycloak.dc2.scale/>
|
|
|
|
<keycloak.docker.cpusets>2-3</keycloak.docker.cpusets>
|
|
|
|
<keycloak.dc1.docker.cpusets>2</keycloak.dc1.docker.cpusets>
|
|
|
|
<keycloak.dc2.docker.cpusets>3</keycloak.dc2.docker.cpusets>
|
|
|
|
<keycloak.docker.memlimit>2500m</keycloak.docker.memlimit>
|
2017-09-29 12:00:20 +00:00
|
|
|
<keycloak.jvm.memory>-Xms64m -Xmx2g -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m</keycloak.jvm.memory>
|
2017-11-14 18:58:55 +00:00
|
|
|
<keycloak.http.max-connections>50000</keycloak.http.max-connections>
|
|
|
|
<keycloak.ajp.max-connections>50000</keycloak.ajp.max-connections>
|
2017-07-13 18:25:26 +00:00
|
|
|
<keycloak.worker.io-threads>2</keycloak.worker.io-threads>
|
|
|
|
<keycloak.worker.task-max-threads>16</keycloak.worker.task-max-threads>
|
|
|
|
<keycloak.ds.min-pool-size>10</keycloak.ds.min-pool-size>
|
|
|
|
<keycloak.ds.max-pool-size>100</keycloak.ds.max-pool-size>
|
|
|
|
<keycloak.ds.pool-prefill>true</keycloak.ds.pool-prefill>
|
|
|
|
<keycloak.ds.ps-cache-size>100</keycloak.ds.ps-cache-size>
|
2017-09-29 12:00:20 +00:00
|
|
|
|
2017-11-14 18:58:55 +00:00
|
|
|
<!-- Database Settings -->
|
|
|
|
<db.docker.cpusets>1</db.docker.cpusets>
|
|
|
|
<db.dc1.docker.cpusets>1</db.dc1.docker.cpusets>
|
|
|
|
<db.dc2.docker.cpusets>1</db.dc2.docker.cpusets>
|
2017-09-29 12:00:20 +00:00
|
|
|
<db.docker.memlimit>2g</db.docker.memlimit>
|
2018-01-05 04:16:44 +00:00
|
|
|
<db.dump.download.site>https://downloads.jboss.org/keycloak-qe</db.dump.download.site>
|
2017-09-29 12:00:20 +00:00
|
|
|
|
2017-11-14 18:58:55 +00:00
|
|
|
<!-- Load Balancer Settings -->
|
|
|
|
<lb.docker.cpusets>1</lb.docker.cpusets>
|
|
|
|
<lb.dc1.docker.cpusets>1</lb.dc1.docker.cpusets>
|
|
|
|
<lb.dc2.docker.cpusets>1</lb.dc2.docker.cpusets>
|
2017-12-04 13:40:57 +00:00
|
|
|
<lb.docker.memlimit>1500m</lb.docker.memlimit>
|
|
|
|
<lb.jvm.memory>-Xms64m -Xmx1024m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m</lb.jvm.memory>
|
|
|
|
<lb.http.max-connections>50000</lb.http.max-connections>
|
2017-11-14 18:58:55 +00:00
|
|
|
<lb.worker.io-threads>2</lb.worker.io-threads>
|
|
|
|
<lb.worker.task-max-threads>16</lb.worker.task-max-threads>
|
|
|
|
|
|
|
|
<!-- Infinispan Settings -->
|
|
|
|
<infinispan.dc1.docker.cpusets>1</infinispan.dc1.docker.cpusets>
|
|
|
|
<infinispan.dc2.docker.cpusets>1</infinispan.dc2.docker.cpusets>
|
|
|
|
<infinispan.docker.memlimit>1500m</infinispan.docker.memlimit>
|
|
|
|
<infinispan.jvm.memory>-Xms64m -Xmx1g -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -XX:+DisableExplicitGC</infinispan.jvm.memory>
|
|
|
|
|
|
|
|
<!-- Monitoring Settings -->
|
|
|
|
<monitoring.docker.cpusets>0</monitoring.docker.cpusets>
|
2017-09-29 12:00:20 +00:00
|
|
|
|
2017-11-14 18:58:55 +00:00
|
|
|
<!-- Other -->
|
2017-07-13 18:25:26 +00:00
|
|
|
<dataset>default</dataset>
|
|
|
|
<numOfWorkers>1</numOfWorkers>
|
|
|
|
|
|
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
|
|
|
|
|
|
<scala.version>2.11.7</scala.version>
|
|
|
|
<gatling.version>2.1.7</gatling.version>
|
|
|
|
<gatling-plugin.version>2.2.1</gatling-plugin.version>
|
|
|
|
<scala-maven-plugin.version>3.2.2</scala-maven-plugin.version>
|
|
|
|
<jboss-logging.version>3.3.0.Final</jboss-logging.version>
|
|
|
|
|
|
|
|
<gatling.simulationClass>keycloak.DefaultSimulation</gatling.simulationClass>
|
|
|
|
<gatling.skip.run>true</gatling.skip.run>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-adapter-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-adapter-spi</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-common</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-admin-client</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.spec.javax.ws.rs</groupId>
|
|
|
|
<artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.logging</groupId>
|
|
|
|
<artifactId>jboss-logging</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-jaxrs</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-client</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-jackson2-provider</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
|
<artifactId>httpclient</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.scala-lang</groupId>
|
|
|
|
<artifactId>scala-library</artifactId>
|
|
|
|
<version>${scala.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.gatling.highcharts</groupId>
|
|
|
|
<artifactId>gatling-charts-highcharts</artifactId>
|
|
|
|
<version>${gatling.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<directory>src/test/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
|
|
|
<plugins>
|
2017-11-14 18:58:55 +00:00
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>enforce-teardown-before-clean</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>pre-clean</phase>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireFilesDontExist>
|
|
|
|
<message><![CDATA[
|
|
|
|
WARNING: A previously provisioned system still appears to be running.
|
|
|
|
Please tear it down with `mvn verify -P teardown [-Pcluster|crossdc]` before runing `mvn clean`,
|
|
|
|
or delete the `provisioned-system.properties` file manually.
|
|
|
|
]]></message>
|
|
|
|
<files>
|
|
|
|
<file>${provisioned.system.properties.file}</file>
|
|
|
|
</files>
|
|
|
|
</requireFilesDontExist>
|
|
|
|
</rules>
|
|
|
|
<fail>true</fail>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>properties-maven-plugin</artifactId>
|
|
|
|
<version>1.0.0</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>read-existing-provisioned-system-properties</id>
|
|
|
|
<phase>initialize</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>read-project-properties</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<files>
|
|
|
|
<file>${project.build.directory}/provisioned-system.properties</file>
|
|
|
|
</files>
|
|
|
|
<quiet>true</quiet>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2017-07-13 18:25:26 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>net.alchim31.maven</groupId>
|
|
|
|
<artifactId>scala-maven-plugin</artifactId>
|
|
|
|
<version>${scala-maven-plugin.version}</version>
|
|
|
|
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>add-source</id>
|
|
|
|
<!--phase>process-resources</phase-->
|
|
|
|
<goals>
|
|
|
|
<goal>add-source</goal>
|
|
|
|
<!--goal>compile</goal-->
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>compile</id>
|
|
|
|
<!--phase>process-test-resources</phase-->
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
<goal>testCompile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<args>
|
|
|
|
<arg>-target:jvm-1.8</arg>
|
|
|
|
<arg>-deprecation</arg>
|
|
|
|
<arg>-feature</arg>
|
|
|
|
<arg>-unchecked</arg>
|
|
|
|
<arg>-language:implicitConversions</arg>
|
|
|
|
<arg>-language:postfixOps</arg>
|
|
|
|
</args>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<!--
|
|
|
|
Execute test directly by using:
|
|
|
|
|
2017-11-14 18:58:55 +00:00
|
|
|
mvn gatling:execute -Ptest -f testsuite/performance/gatling -Dgatling.simulationClass=keycloak.DemoSimulation2
|
2017-07-13 18:25:26 +00:00
|
|
|
|
|
|
|
For more usage info see: http://gatling.io/docs/current/extensions/maven_plugin/
|
|
|
|
-->
|
|
|
|
<groupId>io.gatling</groupId>
|
|
|
|
<artifactId>gatling-maven-plugin</artifactId>
|
|
|
|
<version>${gatling-plugin.version}</version>
|
|
|
|
|
|
|
|
<configuration>
|
|
|
|
<configFolder>${project.build.testOutputDirectory}</configFolder>
|
|
|
|
<skip>${gatling.skip.run}</skip>
|
|
|
|
<disableCompiler>true</disableCompiler>
|
|
|
|
<runMultipleSimulations>true</runMultipleSimulations>
|
|
|
|
<!--includes>
|
|
|
|
<include>keycloak.DemoSimulation2</include>
|
|
|
|
</includes-->
|
|
|
|
<jvmArgs>
|
2017-11-14 18:58:55 +00:00
|
|
|
<param>-Dkeycloak.server.uris=${keycloak.frontend.servers}</param>
|
2017-07-13 18:25:26 +00:00
|
|
|
<param>-DnumOfRealms=${numOfRealms}</param>
|
|
|
|
<param>-DusersPerRealm=${usersPerRealm}</param>
|
|
|
|
<param>-DclientsPerRealm=${clientsPerRealm}</param>
|
|
|
|
<param>-DrealmRoles=${realmRoles}</param>
|
|
|
|
<param>-DrealmRolesPerUser=${realmRolesPerUser}</param>
|
|
|
|
<param>-DclientRolesPerUser=${clientRolesPerUser}</param>
|
|
|
|
<param>-DclientRolesPerClient=${clientRolesPerClient}</param>
|
|
|
|
<param>-DhashIterations=${hashIterations}</param>
|
|
|
|
</jvmArgs>
|
|
|
|
</configuration>
|
|
|
|
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>integration-test</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>integration-test</phase>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2017-11-14 18:58:55 +00:00
|
|
|
|
2017-07-13 18:25:26 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
2017-11-14 18:58:55 +00:00
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<workingDirectory>${project.basedir}</workingDirectory>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2017-07-13 18:25:26 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
2017-11-14 18:58:55 +00:00
|
|
|
|
2017-07-13 18:25:26 +00:00
|
|
|
<profile>
|
2017-11-14 18:58:55 +00:00
|
|
|
<id>docker-compose</id>
|
2017-07-13 18:25:26 +00:00
|
|
|
<activation>
|
|
|
|
<property>
|
2017-11-14 18:58:55 +00:00
|
|
|
<name>!provisioner</name>
|
2017-07-13 18:25:26 +00:00
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2017-11-14 18:58:55 +00:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2017-07-13 18:25:26 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<id>copy-dockerfiles-etc</id>
|
|
|
|
<phase>generate-resources</phase>
|
2017-07-13 18:25:26 +00:00
|
|
|
<goals>
|
2017-11-14 18:58:55 +00:00
|
|
|
<goal>run</goal>
|
2017-07-13 18:25:26 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-11-14 18:58:55 +00:00
|
|
|
<target>
|
|
|
|
<copy todir="${project.build.directory}/docker-compose" overwrite="false" >
|
|
|
|
<fileset dir="${project.basedir}/src/main/docker-compose"/>
|
|
|
|
</copy>
|
|
|
|
<copy todir="${project.build.directory}/docker-compose" overwrite="false" >
|
|
|
|
<fileset dir="${project.basedir}/..">
|
|
|
|
<include name="db/**"/>
|
|
|
|
<include name="infinispan/**"/>
|
|
|
|
<include name="monitoring/**"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
2017-11-30 22:01:52 +00:00
|
|
|
<copy todir="${project.build.directory}/docker-compose/load-balancer/wildfly-modcluster" overwrite="false" >
|
|
|
|
<fileset dir="${project.basedir}/../load-balancer/wildfly-modcluster/target/docker"/>
|
|
|
|
</copy>
|
2017-11-14 18:58:55 +00:00
|
|
|
<copy todir="${project.build.directory}/docker-compose/keycloak" overwrite="false" >
|
|
|
|
<fileset dir="${project.basedir}/../keycloak/target/docker"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
2017-07-13 18:25:26 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2017-11-14 18:58:55 +00:00
|
|
|
</plugin>
|
2017-07-13 18:25:26 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>cluster</id>
|
|
|
|
<properties>
|
2017-11-14 18:58:55 +00:00
|
|
|
<deployment>cluster</deployment>
|
|
|
|
<keycloak.docker.cpusets>2 3</keycloak.docker.cpusets>
|
2017-07-13 18:25:26 +00:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>crossdc</id>
|
|
|
|
<properties>
|
2017-11-14 18:58:55 +00:00
|
|
|
<deployment>crossdc</deployment>
|
2017-07-13 18:25:26 +00:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>provision</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<id>provision</id>
|
|
|
|
<phase>process-test-resources</phase>
|
2017-07-13 18:25:26 +00:00
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-11-14 18:58:55 +00:00
|
|
|
<executable>./${provisioner}.sh</executable>
|
2017-07-13 18:25:26 +00:00
|
|
|
<environmentVariables>
|
2017-11-14 18:58:55 +00:00
|
|
|
<PROVISIONER>${provisioner}</PROVISIONER>
|
|
|
|
<DEPLOYMENT>${deployment}</DEPLOYMENT>
|
|
|
|
<OPERATION>provision</OPERATION>
|
2017-09-29 12:00:20 +00:00
|
|
|
|
2017-11-14 18:58:55 +00:00
|
|
|
<KEYCLOAK_VERSION>${project.version}</KEYCLOAK_VERSION>
|
2017-07-13 18:25:26 +00:00
|
|
|
|
2017-12-04 14:52:21 +00:00
|
|
|
<MANAGEMENT_USER>${management.user}</MANAGEMENT_USER>
|
|
|
|
<MANAGEMENT_USER_PASS>${management.user.password}</MANAGEMENT_USER_PASS>
|
|
|
|
|
2017-11-14 18:58:55 +00:00
|
|
|
<KEYCLOAK_SCALE>${keycloak.scale}</KEYCLOAK_SCALE>
|
|
|
|
<KEYCLOAK_DC1_SCALE>${keycloak.dc1.scale}</KEYCLOAK_DC1_SCALE>
|
|
|
|
<KEYCLOAK_DC2_SCALE>${keycloak.dc2.scale}</KEYCLOAK_DC2_SCALE>
|
|
|
|
<KEYCLOAK_CPUSETS>${keycloak.docker.cpusets}</KEYCLOAK_CPUSETS>
|
|
|
|
<KEYCLOAK_DC1_CPUSETS>${keycloak.dc1.docker.cpusets}</KEYCLOAK_DC1_CPUSETS>
|
|
|
|
<KEYCLOAK_DC2_CPUSETS>${keycloak.dc2.docker.cpusets}</KEYCLOAK_DC2_CPUSETS>
|
|
|
|
<KEYCLOAK_MEMLIMIT>${keycloak.docker.memlimit}</KEYCLOAK_MEMLIMIT>
|
2017-07-13 18:25:26 +00:00
|
|
|
<KEYCLOAK_JVM_MEMORY>${keycloak.jvm.memory}</KEYCLOAK_JVM_MEMORY>
|
|
|
|
<KEYCLOAK_HTTP_MAX_CONNECTIONS>${keycloak.http.max-connections}</KEYCLOAK_HTTP_MAX_CONNECTIONS>
|
|
|
|
<KEYCLOAK_AJP_MAX_CONNECTIONS>${keycloak.ajp.max-connections}</KEYCLOAK_AJP_MAX_CONNECTIONS>
|
|
|
|
<KEYCLOAK_WORKER_IO_THREADS>${keycloak.worker.io-threads}</KEYCLOAK_WORKER_IO_THREADS>
|
|
|
|
<KEYCLOAK_WORKER_TASK_MAX_THREADS>${keycloak.worker.task-max-threads}</KEYCLOAK_WORKER_TASK_MAX_THREADS>
|
|
|
|
<KEYCLOAK_DS_MIN_POOL_SIZE>${keycloak.ds.min-pool-size}</KEYCLOAK_DS_MIN_POOL_SIZE>
|
|
|
|
<KEYCLOAK_DS_MAX_POOL_SIZE>${keycloak.ds.max-pool-size}</KEYCLOAK_DS_MAX_POOL_SIZE>
|
|
|
|
<KEYCLOAK_DS_POOL_PREFILL>${keycloak.ds.pool-prefill}</KEYCLOAK_DS_POOL_PREFILL>
|
|
|
|
<KEYCLOAK_DS_PS_CACHE_SIZE>${keycloak.ds.ps-cache-size}</KEYCLOAK_DS_PS_CACHE_SIZE>
|
2017-11-14 18:58:55 +00:00
|
|
|
|
|
|
|
<DB_CPUSETS>${db.docker.cpusets}</DB_CPUSETS>
|
|
|
|
<DB_DC1_CPUSETS>${db.dc1.docker.cpusets}</DB_DC1_CPUSETS>
|
|
|
|
<DB_DC2_CPUSETS>${db.dc2.docker.cpusets}</DB_DC2_CPUSETS>
|
|
|
|
<DB_MEMLIMIT>${db.docker.memlimit}</DB_MEMLIMIT>
|
|
|
|
|
|
|
|
<LB_CPUSETS>${lb.docker.cpusets}</LB_CPUSETS>
|
|
|
|
<LB_DC1_CPUSETS>${lb.dc1.docker.cpusets}</LB_DC1_CPUSETS>
|
|
|
|
<LB_DC2_CPUSETS>${lb.dc2.docker.cpusets}</LB_DC2_CPUSETS>
|
|
|
|
<LB_MEMLIMIT>${lb.docker.memlimit}</LB_MEMLIMIT>
|
|
|
|
<LB_JVM_MEMORY>${lb.jvm.memory}</LB_JVM_MEMORY>
|
|
|
|
<LB_HTTP_MAX_CONNECTIONS>${lb.http.max-connections}</LB_HTTP_MAX_CONNECTIONS>
|
|
|
|
<LB_WORKER_IO_THREADS>${lb.worker.io-threads}</LB_WORKER_IO_THREADS>
|
|
|
|
<LB_WORKER_TASK_MAX_THREADS>${lb.worker.task-max-threads}</LB_WORKER_TASK_MAX_THREADS>
|
2017-07-13 18:25:26 +00:00
|
|
|
|
2017-11-14 18:58:55 +00:00
|
|
|
<INFINISPAN_DC1_CPUSETS>${infinispan.dc1.docker.cpusets}</INFINISPAN_DC1_CPUSETS>
|
|
|
|
<INFINISPAN_DC2_CPUSETS>${infinispan.dc2.docker.cpusets}</INFINISPAN_DC2_CPUSETS>
|
|
|
|
<INFINISPAN_MEMLIMIT>${infinispan.docker.memlimit}</INFINISPAN_MEMLIMIT>
|
2017-07-13 18:25:26 +00:00
|
|
|
<INFINISPAN_JVM_MEMORY>${infinispan.jvm.memory}</INFINISPAN_JVM_MEMORY>
|
|
|
|
</environmentVariables>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>properties-maven-plugin</artifactId>
|
|
|
|
<version>1.0.0</version>
|
|
|
|
<executions>
|
2017-07-13 18:25:26 +00:00
|
|
|
<execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<id>read-new-provisioned-system-properties</id>
|
2017-07-13 18:25:26 +00:00
|
|
|
<goals>
|
2017-11-14 18:58:55 +00:00
|
|
|
<goal>read-project-properties</goal>
|
2017-07-13 18:25:26 +00:00
|
|
|
</goals>
|
2017-11-14 18:58:55 +00:00
|
|
|
<phase>pre-integration-test</phase>
|
2017-07-13 18:25:26 +00:00
|
|
|
<configuration>
|
2017-11-14 18:58:55 +00:00
|
|
|
<files>
|
|
|
|
<file>${project.build.directory}/provisioned-system.properties</file>
|
|
|
|
</files>
|
2017-07-13 18:25:26 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2017-11-14 18:58:55 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>initialize-dataset-properties</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>dataset</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2017-07-13 18:25:26 +00:00
|
|
|
<plugin>
|
2017-11-14 18:58:55 +00:00
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>properties-maven-plugin</artifactId>
|
|
|
|
<version>1.0.0</version>
|
2017-07-13 18:25:26 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<id>initialize-dataset-properties</id>
|
2017-07-13 18:25:26 +00:00
|
|
|
<phase>pre-integration-test</phase>
|
|
|
|
<goals>
|
2017-11-14 18:58:55 +00:00
|
|
|
<goal>read-project-properties</goal>
|
2017-07-13 18:25:26 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-11-14 18:58:55 +00:00
|
|
|
<files>
|
2017-12-05 15:27:36 +00:00
|
|
|
<file>${project.basedir}/datasets/${dataset}.properties</file>
|
2017-11-14 18:58:55 +00:00
|
|
|
</files>
|
|
|
|
<quiet>true</quiet>
|
2017-07-13 18:25:26 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2017-11-14 18:58:55 +00:00
|
|
|
</plugin>
|
2017-07-13 18:25:26 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
2017-10-04 07:00:05 +00:00
|
|
|
<id>generate-data</id>
|
2017-07-13 18:25:26 +00:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>generate-data</id>
|
|
|
|
<phase>pre-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>java</executable>
|
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>-classpath</argument>
|
|
|
|
<classpath/>
|
|
|
|
<argument>-DnumOfRealms=${numOfRealms}</argument>
|
|
|
|
<argument>-DusersPerRealm=${usersPerRealm}</argument>
|
|
|
|
<argument>-DclientsPerRealm=${clientsPerRealm}</argument>
|
|
|
|
<argument>-DrealmRoles=${realmRoles}</argument>
|
|
|
|
<argument>-DrealmRolesPerUser=${realmRolesPerUser}</argument>
|
|
|
|
<argument>-DclientRolesPerUser=${clientRolesPerUser}</argument>
|
|
|
|
<argument>-DclientRolesPerClient=${clientRolesPerClient}</argument>
|
|
|
|
<argument>-DhashIterations=${hashIterations}</argument>
|
|
|
|
<argument>org.keycloak.performance.RealmsConfigurationBuilder</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>load-data</id>
|
|
|
|
<phase>pre-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>java</executable>
|
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>-classpath</argument>
|
|
|
|
<classpath/>
|
2017-11-14 18:58:55 +00:00
|
|
|
<argument>-Dkeycloak.server.uris=${keycloak.frontend.servers}</argument>
|
2017-07-13 18:25:26 +00:00
|
|
|
<argument>-DnumOfWorkers=${numOfWorkers}</argument>
|
|
|
|
<argument>org.keycloak.performance.RealmsConfigurationLoader</argument>
|
|
|
|
<argument>benchmark-realms.json</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2017-11-14 18:58:55 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>export-dump</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2017-07-13 18:25:26 +00:00
|
|
|
<plugin>
|
2017-11-14 18:58:55 +00:00
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
2017-07-13 18:25:26 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<id>enforce-nondefault-dataset</id>
|
2017-07-13 18:25:26 +00:00
|
|
|
<goals>
|
2017-11-14 18:58:55 +00:00
|
|
|
<goal>enforce</goal>
|
2017-07-13 18:25:26 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-11-14 18:58:55 +00:00
|
|
|
<rules>
|
|
|
|
<requireProperty>
|
|
|
|
<property>dataset</property>
|
|
|
|
<regex>(?!default).*</regex>
|
|
|
|
<regexMessage>For the "export-dump" task property "dataset" cannot be set to "default".</regexMessage>
|
|
|
|
</requireProperty>
|
|
|
|
</rules>
|
2017-07-13 18:25:26 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2017-09-29 10:28:46 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>export-dump</id>
|
|
|
|
<phase>pre-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-11-14 18:58:55 +00:00
|
|
|
<executable>./${provisioner}.sh</executable>
|
2017-09-29 10:28:46 +00:00
|
|
|
<environmentVariables>
|
2017-11-14 18:58:55 +00:00
|
|
|
<PROVISIONER>${provisioner}</PROVISIONER>
|
|
|
|
<DEPLOYMENT>${deployment}</DEPLOYMENT>
|
|
|
|
<OPERATION>export-dump</OPERATION>
|
2017-09-29 10:28:46 +00:00
|
|
|
<DATASET>${dataset}</DATASET>
|
|
|
|
</environmentVariables>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2017-07-13 18:25:26 +00:00
|
|
|
<profile>
|
|
|
|
<id>import-dump</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<id>import-dump</id>
|
2017-07-13 18:25:26 +00:00
|
|
|
<phase>pre-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-11-14 18:58:55 +00:00
|
|
|
<executable>./${provisioner}.sh</executable>
|
2017-07-13 18:25:26 +00:00
|
|
|
<environmentVariables>
|
2017-11-14 18:58:55 +00:00
|
|
|
<PROVISIONER>${provisioner}</PROVISIONER>
|
|
|
|
<DEPLOYMENT>${deployment}</DEPLOYMENT>
|
|
|
|
<OPERATION>import-dump</OPERATION>
|
2017-07-13 18:25:26 +00:00
|
|
|
<DATASET>${dataset}</DATASET>
|
2018-01-05 04:16:44 +00:00
|
|
|
<DUMP_DOWNLOAD_SITE>${db.dump.download.site}</DUMP_DOWNLOAD_SITE>
|
2017-07-13 18:25:26 +00:00
|
|
|
</environmentVariables>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>test</id>
|
|
|
|
<properties>
|
|
|
|
<gatling.skip.run>false</gatling.skip.run>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>teardown</id>
|
|
|
|
<properties>
|
2017-11-14 18:58:55 +00:00
|
|
|
<delete.data>true</delete.data>
|
2017-07-13 18:25:26 +00:00
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<id>teardown</id>
|
2017-07-13 18:25:26 +00:00
|
|
|
<phase>post-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-11-14 18:58:55 +00:00
|
|
|
<executable>./${provisioner}.sh</executable>
|
2017-07-13 18:25:26 +00:00
|
|
|
<environmentVariables>
|
2017-11-14 18:58:55 +00:00
|
|
|
<PROVISIONER>${provisioner}</PROVISIONER>
|
|
|
|
<DEPLOYMENT>${deployment}</DEPLOYMENT>
|
|
|
|
<OPERATION>teardown</OPERATION>
|
|
|
|
<DELETE_DATA>${delete.data}</DELETE_DATA>
|
2017-07-13 18:25:26 +00:00
|
|
|
</environmentVariables>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2017-11-14 18:58:55 +00:00
|
|
|
</plugin>
|
2017-07-13 18:25:26 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>keep-data</id>
|
|
|
|
<properties>
|
2017-11-14 18:58:55 +00:00
|
|
|
<delete.data>false</delete.data>
|
2017-07-13 18:25:26 +00:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>monitoring</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<id>monitoring-on</id>
|
2017-07-13 18:25:26 +00:00
|
|
|
<phase>pre-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-11-14 18:58:55 +00:00
|
|
|
<executable>./${provisioner}.sh</executable>
|
2017-09-29 12:00:20 +00:00
|
|
|
<environmentVariables>
|
2017-11-14 18:58:55 +00:00
|
|
|
<PROVISIONER>${provisioner}</PROVISIONER>
|
|
|
|
<DEPLOYMENT>monitoring</DEPLOYMENT>
|
|
|
|
<OPERATION>provision</OPERATION>
|
2017-12-04 13:40:57 +00:00
|
|
|
<MONITORING_CPUSETS>${monitoring.docker.cpusets}</MONITORING_CPUSETS>
|
2017-09-29 12:00:20 +00:00
|
|
|
</environmentVariables>
|
2017-07-13 18:25:26 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2017-11-14 18:58:55 +00:00
|
|
|
</plugin>
|
2017-07-13 18:25:26 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>monitoring-off</id>
|
|
|
|
<properties>
|
2017-11-14 18:58:55 +00:00
|
|
|
<delete.monitoring.data>false</delete.monitoring.data>
|
2017-07-13 18:25:26 +00:00
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-11-14 18:58:55 +00:00
|
|
|
<id>monitoring-off</id>
|
2017-07-13 18:25:26 +00:00
|
|
|
<phase>post-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-11-14 18:58:55 +00:00
|
|
|
<executable>./${provisioner}.sh</executable>
|
|
|
|
<environmentVariables>
|
|
|
|
<PROVISIONER>${provisioner}</PROVISIONER>
|
|
|
|
<DEPLOYMENT>monitoring</DEPLOYMENT>
|
|
|
|
<OPERATION>teardown</OPERATION>
|
|
|
|
<DELETE_DATA>${delete.monitoring.data}</DELETE_DATA>
|
|
|
|
</environmentVariables>
|
2017-07-13 18:25:26 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>delete-monitoring-data</id>
|
|
|
|
<properties>
|
2017-11-14 18:58:55 +00:00
|
|
|
<delete.monitoring.data>true</delete.monitoring.data>
|
2017-07-13 18:25:26 +00:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
</project>
|