diff --git a/delete-chunks.sh b/delete-chunks.sh index 67ec349..e9ba0fc 100755 --- a/delete-chunks.sh +++ b/delete-chunks.sh @@ -1,12 +1,6 @@ #!/bin/bash declare -a CHUNK_SERVERS=( - "lattice-10" - "lattice-11" - "lattice-12" - "lattice-14" - "lattice-16" - "boston" # clear the /tmp/menukaw dir of client "nashville" "denver" "boise" @@ -26,13 +20,8 @@ declare -a CHUNK_SERVERS=( "cairo" "lima" "london" -# "salt-lake-city" -# "cheyenne" -# "helena" -# "lincoln" -# "nashville" -# "phoenix" -# "providence" + "loveland" + "steamboat" ) for CHUNK_SERVER in "${CHUNK_SERVERS[@]}" diff --git a/src/main/java/cs555/hw1/util/Constants.java b/src/main/java/cs555/hw1/util/Constants.java index fddeb22..df6873e 100644 --- a/src/main/java/cs555/hw1/util/Constants.java +++ b/src/main/java/cs555/hw1/util/Constants.java @@ -22,9 +22,9 @@ public static class Client { public static class ChunkServer { public static final String CMD_LIST_CHUNKS = "list-chunks"; public static final String CMD_GET_HOST = "get-host"; - public static final int MAX_NODES = 20; + public static final int MAX_NODES = 30; public static final String EXT_DATA_CHUNK = "_chunk"; - public static final int MAJOR_HEARTBEAT_INTERVAL = 60 * 1000; // 1 minute + public static final int MAJOR_HEARTBEAT_INTERVAL = 5 * 60 * 1000; // 5 minute public static final int MINOR_HEARTBEAT_INTERVAL = 30 * 1000; // 30 seconds public static final int LIVENESS_HEARTBEAT_INTERVAL = 10 * 1000; // 10 seconds } diff --git a/start-chunk-servers.sh b/start-chunk-servers.sh index 82652fe..7e45182 100755 --- a/start-chunk-servers.sh +++ b/start-chunk-servers.sh @@ -21,6 +21,9 @@ declare -a CHUNK_SERVERS=( "berlin" "cairo" "lima" + "london" + "loveland" + "steamboat" ) for CHUNK_SERVER in "${CHUNK_SERVERS[@]}"