Skip to content

Commit

Permalink
Update ansible tasks to move YCSB jar files
Browse files Browse the repository at this point in the history
  • Loading branch information
aminst committed Nov 3, 2023
1 parent 01fa684 commit df921fe
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
27 changes: 26 additions & 1 deletion deploy/ansible/tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,32 @@
dest: "/root/oblishard/{{ item[0] }}"
mode: '0666'
delegate_to: "{{ item[1] }}"
loop: "{{ ['router_endpoints.yaml', 'shardnode_endpoints.yaml', 'oramnode_endpoints.yaml', 'parameters.yaml', 'redis-data.txt', 'simple.trace'] | product(groups['all']) | list }}"
loop: "{{ ['router_endpoints.yaml', 'shardnode_endpoints.yaml', 'oramnode_endpoints.yaml', 'redis_endpoints.yaml', 'parameters.yaml', 'simple.trace'] | product(groups['all']) | list }}"

- name: Compile YCSB and move to server
block:
- name: Compile YCSB
shell:
cmd: "mvn clean package -Dcheckstyle.skip"
chdir: "../../experiments/YCSB"
delegate_to: 127.0.0.1
become: yes
become_user: aminst
- name: Move core Jar file to servers
copy:
src: "../../experiments/YCSB/core/target/core-0.18.0-SNAPSHOT-jar-with-dependencies.jar"
dest: "/root/oblishard/"
mode: '0777'
- name: Move oblishard Jar file to servers
copy:
src: "../../experiments/YCSB/oblishard/target/oblishard-0.18.0-SNAPSHOT.jar"
dest: "/root/oblishard/"
mode: '0777'
- name: Move workloads folder to servers
copy:
src: "../../experiments/YCSB/workloads"
dest: "/root/oblishard/"
mode: '0777'

- name: Create oramnode systemd services
template:
Expand Down
Binary file removed exp/.DS_Store
Binary file not shown.
Binary file removed exp/YCSB/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class OblishardClient extends DB {

@Override
public void init() throws DBException {
String host = "127.0.0.1";
String host = "192.168.252.115";
int port = 8745;
ManagedChannel channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext().build();
stub = RouterGrpc.newBlockingStub(channel);
Expand Down

0 comments on commit df921fe

Please sign in to comment.