Skip to content

Commit e40da6c

Browse files
next updates
1 parent 7776717 commit e40da6c

File tree

8 files changed

+206
-101
lines changed

8 files changed

+206
-101
lines changed

slo/playground/configs/chaos.sh

100644100755
Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,31 @@ get_random_container() {
2020

2121
sleep 60
2222

23-
get_random_container
24-
25-
sh -c "docker stop ${nodeForChaos} -t 30"
26-
sh -c "docker start ${nodeForChaos}"
27-
28-
sleep 60
29-
30-
get_random_container
31-
32-
sh -c "docker restart ${nodeForChaos} -t 0"
33-
34-
sleep 60
23+
echo "Start CHAOS YDB cluster!"
24+
25+
for i in $(seq 1 10)
26+
do
27+
echo "docker stop/start iteration $i"
28+
29+
get_random_container
30+
31+
sh -c "docker stop ${nodeForChaos} -t 10"
32+
sh -c "docker start ${nodeForChaos}"
33+
34+
sleep 20
35+
done
36+
37+
for i in $(seq 1 10)
38+
do
39+
echo "docker restart iteration $i"
40+
41+
get_random_container
42+
43+
sh -c "docker restart ${nodeForChaos} -t 0"
44+
45+
sleep 20
46+
done
3547

3648
get_random_container
3749

3850
sh -c "docker kill -s SIGKILL ${nodeForChaos}"
39-
40-
sleep 60

slo/playground/configs/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ services:
273273
restart: on-failure
274274
container_name: ydb-chaos
275275
<<: *runtime
276-
entrypoint: ["/bin/sh", "-c", "ls -la /opt/ydb && /opt/ydb/chaos.sh"]
276+
entrypoint: ["/bin/sh", "-c", "chmod +x /opt/ydb/chaos.sh && ls -la /opt/ydb && /opt/ydb/chaos.sh"]
277277
volumes:
278278
- ./chaos.sh:/opt/ydb/chaos.sh
279279
- ./ydb.yaml:/opt/ydb/cfg/config.yaml

slo/src/Internal/Cli.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static class Cli
2323

2424
private static readonly Option<int> WriteTimeoutOption = new(
2525
"--write-timeout",
26-
() => 1000,
26+
() => 10,
2727
"write timeout seconds");
2828

2929
private static readonly Option<int> ReportPeriodOption = new(

slo/src/Internal/SloTableContext.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public interface ISloContext
1616
builder.AddConsole().SetMinimumLevel(LogLevel.Information);
1717
builder.AddFilter("Ydb.Sdk.Ado", LogLevel.Debug);
1818
builder.AddFilter("Ydb.Sdk.Services.Query", LogLevel.Debug);
19-
builder.AddFilter("Ydb.Sdk.Services.Topic", LogLevel.Debug);
2019
});
2120

2221

0 commit comments

Comments
 (0)