Skip to content

Commit

Permalink
change default ports
Browse files Browse the repository at this point in the history
Signed-off-by: eolesinski <eo2454@columbia.edu>
  • Loading branch information
eolesinski authored and HalosGhost committed Aug 6, 2024
1 parent 30797cb commit 4c91a6d
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 33 deletions.
12 changes: 6 additions & 6 deletions tests/integration/integration_tests.cfg
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
archiver_count=1
archiver0_endpoint="127.0.0.1:5558"
archiver0_endpoint="127.0.0.1:29858"
archiver0_db="archiver0_db"
atomizer0_endpoint="127.0.0.1:5555"
atomizer0_endpoint="127.0.0.1:29855"
atomizer0_raft_endpoint="127.0.0.1:6666"
atomizer_count=1
window_size=40000
shard0_endpoint="127.0.0.1:5556"
shard0_endpoint="127.0.0.1:29856"
shard0_db="shard0_db"
shard0_start=0
shard0_end=255
shard0_loglevel="WARN"
shard_count=1
sentinel0_endpoint="127.0.0.1:5557"
sentinel0_endpoint="127.0.0.1:29857"
sentinel0_loglevel="WARN"
sentinel0_private_key="0000000000000001000000000000000000000000000000000000000000000000"
sentinel0_public_key="eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3"
Expand All @@ -23,8 +23,8 @@ election_timeout_lower=3000
heartbeat=1000
raft_max_batch=100000
snapshot_distance=1000000000
watchtower0_client_endpoint="127.0.0.1:5559"
watchtower0_internal_endpoint="127.0.0.1:5560"
watchtower0_client_endpoint="127.0.0.1:29859"
watchtower0_internal_endpoint="127.0.0.1:29860"
watchtower0_loglevel="TRACE"
watchtower_count=1
loadgen_invalid_tx_rate=0.00
2 changes: 1 addition & 1 deletion tests/integration/integration_tests_2pc.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
2pc=1
sentinel_count=1
sentinel0_endpoint="127.0.0.1:5557"
sentinel0_endpoint="127.0.0.1:29857"
sentinel0_loglevel="DEBUG"
sentinel0_private_key="0000000000000001000000000000000000000000000000000000000000000000"
sentinel0_public_key="eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3"
Expand Down
10 changes: 5 additions & 5 deletions tests/integration/replicated_atomizer.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
archiver_count=1
archiver0_endpoint="127.0.0.1:5558"
archiver0_endpoint="127.0.0.1:29858"
archiver0_db="archiver0_db"
atomizer0_endpoint="127.0.0.1:6600"
atomizer0_raft_endpoint="127.0.0.1:6666"
Expand All @@ -8,17 +8,17 @@ atomizer1_raft_endpoint="127.0.0.1:6667"
atomizer2_endpoint="127.0.0.1:6602"
atomizer2_raft_endpoint="127.0.0.1:6668"
atomizer_count=3
shard0_endpoint="127.0.0.1:5556"
shard0_endpoint="127.0.0.1:29856"
shard0_db="shard0_db"
shard0_start=0
shard0_end=255
shard_count=1
sentinel0_endpoint="127.0.0.1:5557"
sentinel0_endpoint="127.0.0.1:29857"
sentinel_count=1
sentinel0_private_key="0000000000000001000000000000000000000000000000000000000000000000"
sentinel0_public_key="eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3"
target_block_interval=3000
watchtower0_client_endpoint="127.0.0.1:5559"
watchtower0_internal_endpoint="127.0.0.1:5560"
watchtower0_client_endpoint="127.0.0.1:29859"
watchtower0_internal_endpoint="127.0.0.1:29860"
watchtower_count=1
snapshot_distance=2
20 changes: 10 additions & 10 deletions tests/integration/replicated_shard.cfg
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
archiver_count=1
archiver0_endpoint="127.0.0.1:5558"
archiver0_endpoint="127.0.0.1:29858"
archiver0_db="archiver0_db"
atomizer0_endpoint="127.0.0.1:5555"
atomizer0_endpoint="127.0.0.1:29855"
atomizer0_raft_endpoint="127.0.0.1:6666"
atomizer_count=1
shard0_endpoint="127.0.0.1:5556"
shard0_endpoint="127.0.0.1:29856"
shard0_db="shard0_db"
shard0_start=0
shard0_end=8
shard1_endpoint="127.0.0.1:5561"
shard1_endpoint="127.0.0.1:29861"
shard1_db="shard1_db"
shard1_start=4
shard1_end=32
shard2_endpoint="127.0.0.1:5562"
shard2_endpoint="127.0.0.1:29862"
shard2_db="shard2_db"
shard2_start=16
shard2_end=64
shard3_endpoint="127.0.0.1:5563"
shard3_endpoint="127.0.0.1:29863"
shard3_db="shard3_db"
shard3_start=32
shard3_end=128
shard4_endpoint="127.0.0.1:5564"
shard4_endpoint="127.0.0.1:29864"
shard4_db="shard4_db"
shard4_start=64
shard4_end=255
shard_count=5
sentinel0_endpoint="127.0.0.1:5557"
sentinel0_endpoint="127.0.0.1:29857"
sentinel0_private_key="0000000000000001000000000000000000000000000000000000000000000000"
sentinel0_public_key="eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3"
sentinel_count=1
watchtower0_client_endpoint="127.0.0.1:5559"
watchtower0_internal_endpoint="127.0.0.1:5560"
watchtower0_client_endpoint="127.0.0.1:29859"
watchtower0_internal_endpoint="127.0.0.1:29860"
watchtower_count=1
4 changes: 2 additions & 2 deletions tests/unit/archiver_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class ArchiverTest : public ::testing::Test {
cbdc::logging::log_level::fatal);

cbdc::network::endpoint_t atomizer_endpoint
= {"non-existent-host", 5001};
= {"non-existent-host", 29801};
m_config_opts.m_atomizer_endpoints.emplace_back(atomizer_endpoint);
cbdc::network::endpoint_t archiver_endpoint = {"127.0.0.1", 5000};
cbdc::network::endpoint_t archiver_endpoint = {"127.0.0.1", 29800};
m_config_opts.m_archiver_endpoints.emplace_back(archiver_endpoint);
m_config_opts.m_archiver_db_dirs.emplace_back("archiver0_db");
m_archiver
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/coordinator/coordinator.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
2pc=1
sentinel_count=1
sentinel0_endpoint="127.0.0.1:5557"
sentinel0_endpoint="127.0.0.1:29857"
sentinel0_loglevel="DEBUG"
sentinel0_private_key="0000000000000001000000000000000000000000000000000000000000000000"
sentinel0_public_key="eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3"
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/locking_shard/locking_shard.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
2pc=1
sentinel_count=1
sentinel0_endpoint="127.0.0.1:5557"
sentinel0_endpoint="127.0.0.1:29857"
sentinel0_loglevel="DEBUG"
sentinel0_private_key="0000000000000001000000000000000000000000000000000000000000000000"
sentinel0_public_key="eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3"
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/raft_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ class raft_test : public ::testing::Test {
m_raft_params.heart_beat_interval_ = 1000;
m_raft_params.snapshot_distance_ = 0;
m_raft_params.max_append_size_ = 100000;
m_raft_endpoints.emplace_back("127.0.0.1", 5000);
m_raft_endpoints.emplace_back("127.0.0.1", 5001);
m_raft_endpoints.emplace_back("127.0.0.1", 5002);
m_raft_endpoints.emplace_back("127.0.0.1", 29800);
m_raft_endpoints.emplace_back("127.0.0.1", 29801);
m_raft_endpoints.emplace_back("127.0.0.1", 29802);
}

void TearDown() override {
Expand Down Expand Up @@ -226,7 +226,7 @@ class raft_test : public ::testing::Test {
}

// Test failure to init node raft by keeping port busy
auto ep = cbdc::network::endpoint_t{cbdc::network::localhost, 5001};
auto ep = cbdc::network::endpoint_t{cbdc::network::localhost, 29801};
auto listener = cbdc::network::tcp_listener();
listener.listen(ep.first, ep.second);
ASSERT_FALSE(nodes[1]->init(m_raft_params));
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/socket_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SocketTest : public ::testing::Test {};
TEST_F(SocketTest, ListenConnectBasic) {
auto listener = cbdc::network::tcp_listener();

static constexpr auto portno = 5555;
static constexpr auto portno = 29855;
ASSERT_TRUE(listener.listen(cbdc::network::localhost, portno));

auto conn_sock = cbdc::network::tcp_socket();
Expand Down Expand Up @@ -47,7 +47,7 @@ TEST_F(SocketTest, selector_connect) {
ASSERT_TRUE(s.init());

auto listener = cbdc::network::tcp_listener();
static constexpr auto portno = 5555;
static constexpr auto portno = 29855;
ASSERT_TRUE(listener.listen(cbdc::network::localhost, portno));

ASSERT_TRUE(s.add(listener));
Expand All @@ -74,7 +74,7 @@ TEST_F(SocketTest, selector_unblock) {
t.join();

auto listener = cbdc::network::tcp_listener();
static constexpr auto portno = 5555;
static constexpr auto portno = 29855;
ASSERT_TRUE(listener.listen(cbdc::network::localhost, portno));

ASSERT_TRUE(s.add(listener));
Expand Down

0 comments on commit 4c91a6d

Please sign in to comment.