Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cea7585

Browse files
committed
Cleaning ec2.py cache after instances launch, hints in readme.
1 parent b7f0d81 commit cea7585

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

devops/ec2.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,23 @@
88
key_name: aws
99
security_group: cluster
1010
count: 3
11-
vpc_subnet_id: subnet-99ba45d4
11+
vpc_subnet_id: subnet-e0e2d99a
1212
region: eu-central-1
1313

1414
tasks:
1515

16-
# image here is basic ubuntu backed by ebs
16+
# image here is ubuntu xenial backed by ebs
1717
- import_tasks: tasks/ec2.yml instance_type="t2.micro" image="ami-1e339e71"
1818
tags:
1919
- micro
2020

21-
- import_tasks: tasks/clean_ec2_cache.yml
21+
# image here is ubuntu xenial backed by instance store
22+
- import_tasks: tasks/ec2.yml instance_type="c3.2xlarge" image="ami-4199282e"
2223
tags:
23-
- terminate
24+
- c3.2xlarge
25+
26+
# good for both launch and termination
27+
- import_tasks: tasks/clean_ec2_cache.yml
2428

2529
- name: terminate all ec2 instances
2630
ec2:

devops/readme.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Same on hardcoded nodes:
4343
ansible-playbook -i inventory_manual --tags "build_pg"
4444
Provision only the second node:
4545
ansible-playbook -i inventory_ec2 provision.yml --limit nodes[1]
46+
Build PG, but don't remove src and build with O0:
47+
ansible-playbook -i inventory_ec2/ provision.yml --skip-tags "rm_pg_src" -e "cflags='-O0'"
4648

4749
Reload configs:
4850
ansible-playbook -i inventory_ec2/ send_config.yml
@@ -78,6 +80,9 @@ Currently pgbench exits on first error. postgres_fdw currently supports only
7880
repeatable read / serializable isolation levels which immediately leads to
7981
serialization errors, so you should use either patched postgres_fdw or pgbench.
8082

83+
If you don't want to measure the dist performance, keep data dir on tmpfs or
84+
turn of fsync, the effect it similar.
85+
8186
Things that made me wonder during writing this:
8287
* Reusability of tasks. Playbooks, files with tasks, roles, includes, imports,
8388
old include API...probably working directly from Python would be easier? There

0 commit comments

Comments
 (0)