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

Make Scylla run in production mode #2603

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
9 changes: 7 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
paths:
- 'docker/Dockerfile'
- 'docker/compose.sh'
- 'docker/docker-compose.yml'
- 'Cargo.toml'
- '.github/workflows/docker.yml'
workflow_dispatch:
Expand All @@ -34,7 +35,7 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest-16-cores
runs-on: gcp-large
timeout-minutes: 60

steps:
Expand All @@ -46,17 +47,21 @@ jobs:
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Update aio-max-nr
run: echo 1048576 > /proc/sys/fs/aio-max-nr
Comment on lines +50 to +51
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - this doesn't work on GH runners unfortunately.

- name: Build client binary
run: |
cargo install --path linera-service --bin linera --bin linera-server --debug
- name: Build Docker image
run: docker build . -f docker/Dockerfile -t linera
- name: Run Compose
run: cd docker && ./compose.sh &
- name: Setup upterm session
uses: lhotari/action-upterm@v1
- name: Sync
uses: nick-fields/retry@v2
with:
# Docker compose can take some time to start
max_attempts: 5
timeout_minutes: 2
command: sleep 60 && linera --wallet docker/wallet.json --storage rocksdb:docker/linera.db sync-balance
command: sleep 120 && linera --wallet docker/wallet.json --storage rocksdb:docker/linera.db sync-balance
6 changes: 5 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ services:
- linera-scylla-data:/var/lib/scylla
environment:
SCYLLA_AUTO_CONF: 1
SCYLLA_ENABLE_EXPERIMENTAL: 1
command:
- "--developer-mode"
- "0"
- "--overprovisioned"
- "1"
proxy:
image: linera
container_name: proxy
Expand Down
Loading