Skip to content

Commit

Permalink
DNM: Try to reproduce 8798
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Dec 12, 2024
1 parent 0b0eb9f commit 733f7f3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions ci/nightly/pipeline.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,7 @@ steps:
timeout_in_minutes: 90
agents:
queue: hetzner-x86-64-dedi-16cpu-64gb
parallelism: 20
plugins:
- ./ci/plugins/mzcompose:
composition: parallel-workload
Expand Down
12 changes: 6 additions & 6 deletions misc/python/materialize/parallel_workload/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def run(self, exe: Executor) -> bool:
)
query = f"SUBSCRIBE {obj}"
if self.rng.choice([True, False]):
envelope = "UPSERT" if self.rng.choice([True, False]) else "DEBEZIUM"
envelope = "UPSERT"
columns = self.rng.sample(obj.columns, len(obj.columns))
key = ", ".join(column.name(True) for column in columns)
query += f" ENVELOPE {envelope} (KEY ({key}))"
Expand Down Expand Up @@ -1677,7 +1677,7 @@ def run(self, exe: Executor) -> bool:
DeploymentStatus.IS_LEADER, mz_service
)

time.sleep(self.rng.uniform(60, 120))
time.sleep(60)
return True


Expand Down Expand Up @@ -2197,7 +2197,7 @@ def __init__(
(HttpPostAction, 5),
(CommitRollbackAction, 10),
(ReconnectAction, 1),
(SourceInsertAction, 5),
(SourceInsertAction, 500),
(FlipFlagsAction, 2),
],
autocommit=False,
Expand Down Expand Up @@ -2236,9 +2236,9 @@ def __init__(
(CreateWebhookSourceAction, 2),
(DropWebhookSourceAction, 2),
(CreateKafkaSinkAction, 4),
(DropKafkaSinkAction, 4),
(CreateKafkaSourceAction, 4),
(DropKafkaSourceAction, 4),
(DropKafkaSinkAction, 0),
(CreateKafkaSourceAction, 100),
(DropKafkaSourceAction, 0),
# TODO: Reenable when database-issues#8237 is fixed
# (CreateMySqlSourceAction, 4),
# (DropMySqlSourceAction, 4),
Expand Down
20 changes: 10 additions & 10 deletions misc/python/materialize/parallel_workload/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,20 @@

MAX_COLUMNS = 5
MAX_INCLUDE_HEADERS = 5
MAX_ROWS = 50
MAX_ROWS = 500
MAX_CLUSTERS = 4
MAX_CLUSTER_REPLICAS = 2
MAX_CLUSTER_REPLICAS = 1
MAX_DBS = 5
MAX_SCHEMAS = 5
MAX_TABLES = 5
MAX_VIEWS = 15
MAX_INDEXES = 15
MAX_ROLES = 15
MAX_WEBHOOK_SOURCES = 5
MAX_KAFKA_SOURCES = 5
MAX_MYSQL_SOURCES = 5
MAX_POSTGRES_SOURCES = 5
MAX_KAFKA_SINKS = 5
MAX_WEBHOOK_SOURCES = 2
MAX_KAFKA_SOURCES = 10
MAX_MYSQL_SOURCES = 2
MAX_POSTGRES_SOURCES = 2
MAX_KAFKA_SINKS = 2

MAX_INITIAL_DBS = 1
MAX_INITIAL_SCHEMAS = 1
Expand All @@ -62,10 +62,10 @@
MAX_INITIAL_VIEWS = 2
MAX_INITIAL_ROLES = 1
MAX_INITIAL_WEBHOOK_SOURCES = 1
MAX_INITIAL_KAFKA_SOURCES = 1
MAX_INITIAL_KAFKA_SOURCES = 10
MAX_INITIAL_MYSQL_SOURCES = 1
MAX_INITIAL_POSTGRES_SOURCES = 1
MAX_INITIAL_KAFKA_SINKS = 1
MAX_INITIAL_KAFKA_SINKS = 10

NAUGHTY_IDENTIFIERS = False

Expand Down Expand Up @@ -567,7 +567,7 @@ def __init__(
formats.extend(single_column_formats)
self.format = rng.choice(formats)
self.envelope = (
"UPSERT" if self.format == "JSON" else rng.choice(["DEBEZIUM", "UPSERT"])
"UPSERT" if self.format == "JSON" else rng.choice(["UPSERT"])
)
if self.envelope == "UPSERT" or rng.choice([True, False]):
key_cols = [
Expand Down

0 comments on commit 733f7f3

Please sign in to comment.