Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit02cd914

Browse files
committed
rebuild extensions on provision
1 parent1df84a3 commit02cd914

File tree

4 files changed

+33
-8
lines changed

4 files changed

+33
-8
lines changed

‎testeaux/lib/RemoteNode.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ sub new
2727

2828
$self->execute("sudo iptables -F");
2929
$self->execute("sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT");
30+
$self->execute("sudo iptables -A OUTPUT -p tcp --sport ssh -m state --state ESTABLISHED,RELATED -j ACCEPT");
3031

3132
return$self;
3233
}
@@ -152,8 +153,8 @@ sub net_deny_out
152153
subnet_allow
153154
{
154155
my ($self) =@_;
155-
$self->execute("sudo iptables -D INPUT -j DROP");
156-
$self->execute("sudo iptables -D OUTPUT -j DROP");
156+
$self->execute("sudo iptables -D INPUT -j DROP || true");
157+
$self->execute("sudo iptables -D OUTPUT -j DROP || true");
157158
}
158159

159160
1;

‎testeaux/provision.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,14 @@
99
pg_version_tag:master
1010
pg_destroy_and_init:true
1111

12+
tasks:
13+
-name:build raftable
14+
shell:"make clean && make -j {{makejobs}} install"
15+
args:
16+
chdir:"{{pg_src}}/contrib/raftable"
17+
18+
-name:build multimaster
19+
shell:"make clean && make -j {{makejobs}} install"
20+
args:
21+
chdir:"{{pg_src}}/contrib/mmts"
22+

‎testeaux/run_splits.pl

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
'postgres'
2424
);
2525

26-
my$pgbench1 = IPC::Run::start (
26+
my$out ='';
27+
my$err ='';
28+
my$in ='';
29+
30+
my@pgb_params = (
2731
'pgbench',
2832
-c=> 4,
2933
-T=> 30,
@@ -33,16 +37,20 @@
3337
'postgres'
3438
);
3539

40+
41+
42+
my$pgbench1 = IPC::Run::start@pgb_params;#, \$in, \$out, \$err;
43+
3644
sleep 5;
37-
$cluster->{nodes}->[0]->net_deny_in;
45+
$cluster->{nodes}->[2]->net_deny_out;
46+
$cluster->{nodes}->[2]->net_deny_in;
3847
sleep 10;
39-
$cluster->{nodes}->[0]->net_allow;
40-
48+
$cluster->{nodes}->[2]->net_allow;
4149

4250
IPC::Run::finish($pgbench1);
43-
# IPC::Run::run @pgbench_init
44-
4551

52+
print("---stdout--\n$out\n");
53+
print("---stderr--\n$err\n");
4654

4755

4856

‎testeaux/stress/banktransfer.pm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
packagestress::banktransfer;
22

3+
subinit
4+
{
5+
6+
}
7+
38
substart
49
{
510
my ($class,@args) =@_;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp