Skip to content

Commit

Permalink
misc: update no. of maximum chunk-servers
Browse files Browse the repository at this point in the history
  • Loading branch information
menuka94 committed Sep 29, 2021
1 parent ce82099 commit fb0fa6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
15 changes: 2 additions & 13 deletions delete-chunks.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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[@]}"
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/cs555/hw1/util/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
3 changes: 3 additions & 0 deletions start-chunk-servers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ declare -a CHUNK_SERVERS=(
"berlin"
"cairo"
"lima"
"london"
"loveland"
"steamboat"
)

for CHUNK_SERVER in "${CHUNK_SERVERS[@]}"
Expand Down

0 comments on commit fb0fa6a

Please sign in to comment.