Skip to content

Commit 3c160a0

Browse files
authored
Merge pull request #58 from stackhpc/reductionist
Rebrand to Reductionist
2 parents 7902d62 + 75f517e commit 3c160a0

File tree

13 files changed

+90
-90
lines changed

13 files changed

+90
-90
lines changed

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363

6464
- name: Wait for active storage server to start
6565
run: |
66-
until curl -if http://localhost:8080/.well-known/s3-active-storage-schema; do
66+
until curl -if http://localhost:8080/.well-known/reductionist-schema; do
6767
sleep 1;
6868
done
6969
@@ -74,7 +74,7 @@ jobs:
7474
run: pytest -s > artifacts/pytest.log
7575

7676
- name: Get active storage logs
77-
run: docker logs s3-active-storage > artifacts/s3-active-storage.log
77+
run: docker logs reductionist > artifacts/reductionist.log
7878
if: always()
7979

8080
- name: Upload artifacts

Cargo.lock

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "s3-active-storage"
2+
name = "reductionist"
33
version = "0.2.0"
44
edition = "2021"
55
# Due to AWS SDK.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ FROM debian:bullseye-slim
2121
RUN apt update \
2222
&& apt install -y --no-install-recommends ca-certificates \
2323
&& update-ca-certificates
24-
COPY --from=builder /usr/local/cargo/bin/s3-active-storage /usr/local/bin/s3-active-storage
25-
CMD ["s3-active-storage"]
24+
COPY --from=builder /usr/local/cargo/bin/reductionist /usr/local/bin/reductionist
25+
CMD ["reductionist"]

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
.PHONY: build
22
build:
3-
@docker buildx build -t s3-active-storage .
3+
@docker buildx build -t reductionist .
44

55
.PHONY: test
66
test:
7-
@docker buildx build --build-arg PROFILE=dev --target builder -t s3-active-storage-test .
8-
@docker run --rm s3-active-storage-test cargo check --color always
9-
@docker run --rm s3-active-storage-test cargo test --color always
7+
@docker buildx build --build-arg PROFILE=dev --target builder -t reductionist-test .
8+
@docker run --rm reductionist-test cargo check --color always
9+
@docker run --rm reductionist-test cargo test --color always
1010

1111
.PHONY: run
1212
run:
13-
@docker run -it --detach --rm --net=host --name s3-active-storage s3-active-storage
13+
@docker run -it --detach --rm --net=host --name reductionist reductionist
1414

1515
.PHONY: stop
1616
stop:
17-
@docker stop s3-active-storage
17+
@docker stop reductionist

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# S3 Active Storage
1+
# Reductionist
22

33
This project implements simple reductions on S3 objects containing numeric binary data.
44
By implementing these reductions in the storage system the volume of data that needs to be
@@ -10,7 +10,7 @@ and is done in collaboration with the
1010
[University of Reading](http://www.reading.ac.uk/).
1111

1212
This is a performant implementation of the active storage server.
13-
The original Python functional prototype is available [here](https://github.com/stackhpc/s3-active-storage).
13+
The original Python functional prototype is available [here](https://github.com/stackhpc/reductionist).
1414

1515
## Concepts
1616

@@ -104,17 +104,17 @@ In particular, the following are known limitations which we intend to address:
104104

105105
## Running
106106

107-
There are various ways to run the S3 Active Storage server.
107+
There are various ways to run the Reductionist server.
108108

109109
### Running in a container
110110

111111
The simplest method is to run it in a container using a pre-built image:
112112

113113
```sh
114-
docker run -it --detach --rm --net=host --name s3-active-storage ghcr.io/stackhpc/s3-active-storage-rs:latest
114+
docker run -it --detach --rm --net=host --name reductionist ghcr.io/stackhpc/reductionist-rs:latest
115115
```
116116

117-
Images are published to [GitHub Container Registry](https://github.com/stackhpc/s3-active-storage-rs/pkgs/container/s3-active-storage-rs) when the project is released.
117+
Images are published to [GitHub Container Registry](https://github.com/stackhpc/reductionist-rs/pkgs/container/reductionist-rs) when the project is released.
118118
The `latest` tag corresponds to the most recent release, or you can use a specific release e.g. `0.1.0`.
119119

120120
This method does not require access to the source code.
@@ -125,15 +125,15 @@ If you need to use unreleased changes, but still want to run in a container, it
125125
First, clone this repository:
126126

127127
```sh
128-
git clone https://github.com/stackhpc/s3-active-storage-rs.git
129-
cd s3-active-storage-rs
128+
git clone https://github.com/stackhpc/reductionist-rs.git
129+
cd reductionist-rs
130130
```
131131

132132
```sh
133133
make build
134134
```
135135

136-
The image will be tagged as `s3-active-storage`.
136+
The image will be tagged as `reductionist`.
137137
The image may be pushed to a registry, or deployed locally.
138138

139139
```sh
@@ -142,7 +142,7 @@ make run
142142

143143
## Build
144144

145-
If you prefer not to run the S3 Active Storage server in a container, it will be necessary to build a binary.
145+
If you prefer not to run the Reductionist server in a container, it will be necessary to build a binary.
146146
Building locally may also be preferable during development to take advantage of incremental compilation.
147147

148148
### Prerequisites
@@ -157,8 +157,8 @@ See the [Rust book](https://doc.rust-lang.org/book/ch01-01-installation.html) fo
157157
First, clone this repository:
158158

159159
```sh
160-
git clone https://github.com/stackhpc/s3-active-storage-rs.git
161-
cd s3-active-storage-rs
160+
git clone https://github.com/stackhpc/reductionist-rs.git
161+
cd reductionist-rs
162162
```
163163

164164
Next, use Cargo to build the package:
@@ -182,7 +182,7 @@ cargo install --path . --locked
182182
Then run:
183183

184184
```sh
185-
s3-active-storage
185+
reductionist
186186
```
187187

188188
## Testing
@@ -223,7 +223,7 @@ python ./scripts/upload_sample_data.py
223223

224224
### Compliance test suite
225225

226-
Proxy functionality can be tested using the [S3 active storage compliance suite](https://github.com/stackhpc/s3-active-storage-compliance-suite).
226+
Proxy functionality can be tested using the [S3 active storage compliance suite](https://github.com/stackhpc/reductionist-compliance-suite).
227227

228228
### Making requests to active storage endpoints
229229

@@ -251,15 +251,15 @@ venv/bin/python ./scripts/client.py sum --server http://localhost:8080 --source
251251
## Documentation
252252

253253
The source code is documented using [rustdoc](https://doc.rust-lang.org/rustdoc/what-is-rustdoc.html).
254-
Currently the `s3-active-storage` crate is not uploaded to https://crates.io, so we do not benefit from hosted documentation on https://docs.rs.
254+
Currently the `reductionist` crate is not uploaded to https://crates.io, so we do not benefit from hosted documentation on https://docs.rs.
255255
It is however possible to build the documentation locally:
256256

257257
```sh
258258
cargo doc
259259
```
260260

261-
Cargo builds documentation for the `s3-active-storage` crate and all of its dependencies.
262-
The resulting documentation is available under `target/doc`, and may be viewed in a web browser using file:///path/to/s3-active-storage/target/doc/s3-active-storage/index.html.
261+
Cargo builds documentation for the `reductionist` crate and all of its dependencies.
262+
The resulting documentation is available under `target/doc`, and may be viewed in a web browser using file:///path/to/reductionist/target/doc/reductionist/index.html.
263263

264264
## Contributing
265265

benches/shuffle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Benchmarks for the byte shuffle filter implementation.
22
use criterion::{black_box, criterion_group, criterion_main, Criterion};
3-
use s3_active_storage::filters::shuffle;
3+
use reductionist::filters::shuffle;
44

55
fn criterion_benchmark(c: &mut Criterion) {
66
for size_k in [64, 256, 1024] {

src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ fn router() -> Router {
8787
}
8888

8989
Router::new()
90-
.route("/.well-known/s3-active-storage-schema", get(schema))
90+
.route("/.well-known/reductionist-schema", get(schema))
9191
.route("/metrics", get(metrics_handler))
9292
.nest("/v1", v1())
9393
.route_layer(middleware::from_fn(track_metrics))
9494
}
9595

96-
/// S3 Active Storage Server Service type alias
96+
/// Reductionist Server Service type alias
9797
///
9898
/// This type implements [tower_service::Service].
9999
// FIXME: The Service type should be some form of tower_service::Service, but couldn't find the

src/cli.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,34 @@
22
33
use clap::Parser;
44

5-
/// S3 Active Storage Proxy command line interface
5+
/// Reductionist command line interface
66
#[derive(Debug, Parser)]
77
pub struct CommandLineArgs {
88
/// The IP address on which the proxy should listen
9-
#[arg(long, default_value = "0.0.0.0", env = "S3_ACTIVE_STORAGE_HOST")]
9+
#[arg(long, default_value = "0.0.0.0", env = "REDUCTIONIST_HOST")]
1010
pub host: String,
1111
/// The port to which the proxy should bind
12-
#[arg(long, default_value_t = 8080, env = "S3_ACTIVE_STORAGE_PORT")]
12+
#[arg(long, default_value_t = 8080, env = "REDUCTIONIST_PORT")]
1313
pub port: u16,
1414
/// Flag indicating whether HTTPS should be used
15-
#[arg(long, default_value_t = false, env = "S3_ACTIVE_STORAGE_HTTPS")]
15+
#[arg(long, default_value_t = false, env = "REDUCTIONIST_HTTPS")]
1616
pub https: bool,
1717
/// Path to the certificate file to be used for HTTPS encryption
1818
#[arg(
1919
long,
20-
default_value = "~/.config/s3-active-storage/certs/cert.pem",
21-
env = "S3_ACTIVE_STORAGE_CERT_FILE"
20+
default_value = "~/.config/reductionist/certs/cert.pem",
21+
env = "REDUCTIONIST_CERT_FILE"
2222
)]
2323
pub cert_file: String,
2424
/// Path to the key file to be used for HTTPS encryption
2525
#[arg(
2626
long,
27-
default_value = "~/.config/s3-active-storage/certs/key.pem",
28-
env = "S3_ACTIVE_STORAGE_KEY_FILE"
27+
default_value = "~/.config/reductionist/certs/key.pem",
28+
env = "REDUCTIONIST_KEY_FILE"
2929
)]
3030
pub key_file: String,
3131
/// Maximum time in seconds to wait for operations to complete upon receiving `ctrl+c` signal.
32-
#[arg(long, default_value_t = 60, env = "S3_ACTIVE_STORAGE_SHUTDOWN_TIMEOUT")]
32+
#[arg(long, default_value_t = 60, env = "REDUCTIONIST_SHUTDOWN_TIMEOUT")]
3333
pub graceful_shutdown_timeout: u64,
3434
}
3535

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//!
1111
//! This is a performant implementation of the Active Storage Server.
1212
//! The original Python functional prototype is available
13-
//! [here](https://github.com/stackhpc/s3-active-storage).
13+
//! [here](https://github.com/stackhpc/reductionist).
1414
//!
1515
//! The Active Storage Server is built on top of a number of open source components.
1616
//!

0 commit comments

Comments
 (0)