-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from Kuadrant/no_infinispan
🔥 Infinispan feature
- Loading branch information
Showing
22 changed files
with
14 additions
and
1,119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,14 +23,6 @@ jobs: | |
test: | ||
name: Test Suite | ||
runs-on: ubuntu-latest | ||
services: | ||
infinispan: | ||
image: infinispan/server:11.0.9.Final | ||
ports: | ||
- 11222:11222 | ||
env: | ||
USER: username | ||
PASS: password | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: supercharge/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,14 +26,6 @@ jobs: | |
test: | ||
name: Test Suite | ||
runs-on: ubuntu-latest | ||
services: | ||
infinispan: | ||
image: infinispan/server:11.0.9.Final | ||
ports: | ||
- 11222:11222 | ||
env: | ||
USER: username | ||
PASS: password | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: supercharge/[email protected] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,31 +248,6 @@ Options: | |
-h, --help Print help | ||
``` | ||
#### `infinispan` optional storage - _experimental_ | ||
The default binary will _not_ support [Infinispan](https://infinispan.org/) as a storage backend for counters. If you | ||
want to give it a try, you would need to build your own binary of the server using: | ||
```commandline | ||
cargo build --release --features=infinispan | ||
``` | ||
|
||
Which will add the `infinispan` to the supported `STORAGES`. | ||
|
||
``` | ||
USAGE: | ||
limitador-server <LIMITS_FILE> infinispan [OPTIONS] <URL> | ||
ARGS: | ||
<URL> Infinispan URL to use | ||
OPTIONS: | ||
-n, --cache-name <cache name> Name of the cache to store counters in [default: limitador] | ||
-c, --consistency <consistency> The consistency to use to read from the cache [default: | ||
Strong] [possible values: Strong, Weak] | ||
-h, --help Print help information | ||
``` | ||
|
||
For an in-depth coverage of the different topologies supported and how they affect the behavior, see the | ||
[topologies' document](../topologies.md). | ||
|
@@ -406,34 +381,6 @@ require Redis. | |
- Format: `enum`: `"debug"`, `"error"`, `"info"`, `"warn"`, or `"trace"`. | ||
### When built with the `infinispan` feature - _experimental_ | ||
|
||
#### `INFINISPAN_CACHE_NAME` | ||
|
||
- The name of the Infinispan cache that Limitador will use to store limits and | ||
counters. This variable applies only when [`INFINISPAN_URL`](#infinispan_url) is | ||
set. | ||
- Optional. By default, Limitador will use a cache called `"limitador"`. | ||
- Format: `string`. | ||
|
||
|
||
#### `INFINISPAN_COUNTERS_CONSISTENCY` | ||
|
||
- Defines the consistency mode for the Infinispan counters created by Limitador. | ||
This variable applies only when [`INFINISPAN_URL`](#infinispan_url) is set. | ||
- Optional. Defaults to `"strong"`. | ||
- Format: `enum`: `"Strong"` or `"Weak"`. | ||
|
||
|
||
#### `INFINISPAN_URL` | ||
|
||
- Infinispan URL. Required only when you want to use Infinispan to store the | ||
limits. | ||
- Optional. By default, Limitador stores the limits in memory and does not | ||
require Infinispan. | ||
- Format: `URL`, in the format of `http://username:[email protected]:11222`. | ||
|
||
|
||
#### `RATE_LIMIT_HEADERS` | ||
- Enables rate limit response headers. Only supported by the RLS server. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.