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

Set max_tables as system parameter #49

Merged
merged 2 commits into from
Jun 24, 2024
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
1 change: 0 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
compose-file: "modules/drivers/materialize/docker-compose.yml"
services: |
materialize
init

# Apply the scripts/exclude_tests.diff patch to exclude tests that are not relevant to Materialize
- name: Apply exclude_tests.diff
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ sudo -- sh -c "echo 127.0.0.1 materialize >> /etc/hosts"
* Start Materialize as a Docker container

```bash
docker compose -f modules/drivers/materialize/docker-compose.yml up -d materialize init
docker compose -f modules/drivers/materialize/docker-compose.yml up -d materialize
```

Now, you should be able to run the tests:
Expand Down
15 changes: 1 addition & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
- --availability-zone=test1
- --availability-zone=test2
- --bootstrap-role=materialize
- --system-parameter-default=max_tables=1000
ports:
- 6875:6875
- 6877:6877
Expand All @@ -19,20 +20,6 @@ services:
interval: 1s,
start_period: 35s,
}
init:
image: postgres:15.3-alpine3.18
depends_on:
- materialize
command: >-
sh -c '
echo "Waiting for materialized to start..." &&
sleep 15 &&
echo "Set Materialize max_tables to 1000" &&
psql -h materialize -U mz_system -d materialize -p 6877 -c "ALTER SYSTEM SET max_tables = 1000;" &&
psql -h materialize -U materialize -d materialize -p 6875 -c "SHOW max_tables;"
'
environment:
- PGPASSWORD=materialize

metabase:
image: metabase/metabase:v0.49.12
Expand Down
Loading