Keycloak 基准测试

The Keycloak 基准测试仓库 contains the necessary tools to run performance tests of a Keycloak 服务器.

它有以下目标

  1. 设置 Keycloak 以获得可重现的结果。

  2. 针对任何 Keycloak 实例运行负载测试。

  3. 使用可观察性堆栈来分析测试运行。

该仓库有多个模块,可以一起或单独使用以实现此目的

  • The 基准测试模块 contains load tests based on Gatling.

  • The provisioning module contains a more advanced Kubernetes 设置 based on minikube, and docker-compose scripts for a simpler setup. The setup for minikube contains a Grafana based observability stack while the docker-compose based setup doesn’t. It also contains examples on how to deploy it on OpenShift and Red Hat OpenShift Service on AWS.

  • The 数据集模块 contains a Keycloak add-on that can create entities in a Keycloak data store to prepare it for a load test.

Keycloak 兼容性

The main branch binaries of Keycloak 基准测试 work with the Keycloak nightly versions, for specific Keycloak release-based binaries please look at https://github.com/keycloak/keycloak-benchmark/releases.

下一步

Continue to 开始入门 to set up an environment and run load tests.