Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preparing v1.0.0 release of server #143

Merged
merged 1 commit into from
Dec 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions limitador-server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

Notable changes to the Limitador server will be tracked in this document.

## 1.0.0 - 2022-12-15

### Added

- Support for command line arguments and options
- Validation of the complete environment on start
- `LIMIT_FILE` is monitored for changes and hot-reloaded

### Changed

- [Syntax for condition](../doc/migrations/conditions.md) within `Limit`s changed
- Removed the HTTP endpoints to mutate `Limit`s
- `Limit`s are solely loaded from the `LIMIT_FILE`
- Only `Counter`s to `Limit`s are persisted, `Limit`s loaded from file are held in memory
- Duplicated `Limit`s with same namespace, conditions and variables is now impossible

### Removed

- By default, Infinispan support isn't compiled in. Use feature `infinispan` at build time

## 0.5.1 - 2022-05-25

### Changed
Expand Down
2 changes: 1 addition & 1 deletion limitador-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "limitador-server"
version = "1.0.0-rc1"
version = "1.1.0-dev"
authors = ["Alex Snaps <[email protected]>", "Eguzki Astiz Lezaun <[email protected]>", "David Ortiz <[email protected]>"]
license = "Apache-2.0"
keywords = ["rate-limiting", "rate", "limiter", "envoy", "rls"]
Expand Down
2 changes: 1 addition & 1 deletion limitador-server/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ kubectl apply -f limitador-podmonitor.yaml
```

### Grafana dashboard
Then, if you have grafana deployed in the cluster, you can import a [3scale Limitador](limitador-grafanadashboard.json) grafana dashboard that we have prepared, which includes:
Then, if you have grafana deployed in the cluster, you can import a [Kuadrant Limitador](limitador-grafanadashboard.json) grafana dashboard that we have prepared, which includes:
- Kuard envoyproxy sidecar metrics (globally and per pod)
- Limitador metrics (globally and per pod)
- And for every deployed component (limitador, kuard, redis):
Expand Down
2 changes: 1 addition & 1 deletion limitador-server/kubernetes/limitador-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: limitador
image: quay.io/3scale/limitador:0.5.1
image: quay.io/kuadrant/limitador:latest
imagePullPolicy: IfNotPresent
env:
- name: RUST_LOG
Expand Down
4 changes: 2 additions & 2 deletions limitador-server/kubernetes/limitador-grafanadashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -2010,7 +2010,7 @@
"schemaVersion": 18,
"style": "dark",
"tags": [
"3scale",
"kuadrant",
"backend"
],
"templating": {
Expand Down Expand Up @@ -2149,6 +2149,6 @@
]
},
"timezone": "",
"title": "3scale Limitador",
"title": "Kuadrant Limitador",
"version": 8
}
2 changes: 1 addition & 1 deletion limitador-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl Limiter {
let parsed_url = Url::parse(&cfg.url).unwrap();

let mut builder = InfinispanStorageBuilder::new(
&format!(
format!(
"{}://{}:{}",
parsed_url.scheme(),
parsed_url.host_str().unwrap(),
Expand Down
2 changes: 1 addition & 1 deletion limitador/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl Storage {
pub fn new() -> Self {
Self {
limits: RwLock::new(HashMap::new()),
counters: Box::new(InMemoryStorage::default()),
counters: Box::<InMemoryStorage>::default(),
}
}

Expand Down