https://github.com/hstreamdb/jepsen.hstream
Jepsen test instances for HStreamDB
https://github.com/hstreamdb/jepsen.hstream
Last synced: about 1 year ago
JSON representation
Jepsen test instances for HStreamDB
- Host: GitHub
- URL: https://github.com/hstreamdb/jepsen.hstream
- Owner: hstreamdb
- License: other
- Created: 2021-11-26T07:41:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-22T06:58:30.000Z (about 1 year ago)
- Last Synced: 2025-04-22T07:51:07.294Z (about 1 year ago)
- Language: Clojure
- Size: 246 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# jepsen.hstream
Jepsen test instances for [HStreamDB](https://github.com/hstreamdb/hstream).
**Note:**
The following files are forked & modified from [https://github.com/jepsen-io/redpanda](Jepsen's official repository), with the same license.
- `src/jepsen/hstream/kafka_test.clj`
- `src/jepsen/hstream/kafka/*`
## Overview
The project is at its early stage and is under active development.
It currently contains the following tests:
- A modified set test suitable for append-only streaming databases
## Usage
```
./scripts/build_base.sh
./scripts/build_legacy.sh
./scripts/up_legacy.sh
./scripts/clean_legacy.sh
```
For kafka version test, run `*_kafka.sh`.
## Check Test Results
The test results will be stored at `./store` directory. Check it manually or by a simple server:
- If you have [`leiningen`](https://leiningen.org/) installed:
```
lein with-profile legacy-husky run serve
```
- If you do not have `leiningen`:
```
docker run -t --rm --network host -v $(pwd):/working clojure:temurin-21-lein /bin/bash -c "cd /working && lein with-profile legacy-husky run serve"
```
Then browse the results at `localhost:8080`.
## Customization
- Add `BASE_IMAGE` and `HSTREAM_IMAGE` arg on building step to use your own hstream image.
- Add `USE_CHINA_MIRROR` arg to speed up downloading.
- Add `env_http_proxy` and `env_https_proxy` arg to use proxy from your host (it should allow LAN requests).
- Adjust test parameters in `docker/control/Dockerfile` or `docker/control-kafka/Dockerfile`, then **rebuild images** (no need to rebuild base image).