-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* project: add new test template for hstream kafka * project: reorganize & add basic kafka test
- Loading branch information
Showing
46 changed files
with
5,376 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
ARG BASE_IMAGE="jepsen-hstream:base" | ||
FROM ${BASE_IMAGE} | ||
|
||
# Waiting for Zookeeper | ||
COPY ./wait-zk.sh /usr/local/bin/wait-zk | ||
RUN chmod +x /usr/local/bin/wait-zk | ||
|
||
# Waiting for logdeviced | ||
COPY ./wait-hstore.sh /usr/local/bin/wait-hstore | ||
RUN chmod +x /usr/local/bin/wait-hstore | ||
|
||
# Waiting for hservers | ||
COPY ./wait-hservers.sh /usr/local/bin/wait-hservers | ||
RUN chmod +x /usr/local/bin/wait-hservers | ||
|
||
# Config for LogDevice | ||
COPY ./logdevice.json /etc/logdevice.json | ||
|
||
EXPOSE 22 6440 | ||
|
||
CMD /usr/local/bin/init-ssh && \ | ||
ZK_IP=$(dig +short zookeeper) && \ | ||
sed -i "s/172.16.0.10:2181/$ZK_IP:2181/g" /etc/logdevice.json && \ | ||
/usr/local/bin/wait-zk && \ | ||
/usr/share/zookeeper/bin/zkCli.sh -server zookeeper:2181 create /logdevice.conf "`cat /etc/logdevice.json`" && \ | ||
ld-admin-server \ | ||
--config-path zk:zookeeper:2181/logdevice.conf \ | ||
--enable-maintenance-manager \ | ||
--maintenance-log-snapshotting \ | ||
--enable-safety-check-periodic-metadata-update \ | ||
>> /tmp/$HOSTNAME.log 2>&1 & \ | ||
/usr/local/bin/wait-hstore && \ | ||
hadmin store nodes-config bootstrap --metadata-replicate-across node:3 && \ | ||
/usr/local/bin/wait-hservers && \ | ||
hstream-kafka --host hserver-1 node init >> /tmp/$HOSTNAME.log 2>&1 && \ | ||
echo "Bootstraped" > /var/jepsen/shared/hserver-cluster-started && \ | ||
tail -f /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"cluster": "logdevice-dev", | ||
"server_settings": { | ||
"enable-node-self-registration": "true", | ||
"enable-nodes-configuration-manager": "true", | ||
"use-nodes-configuration-manager-nodes-configuration": "true", | ||
"enable-cluster-maintenance-state-machine": "true", | ||
"rocksdb-memtable-size-per-node": "1024M", | ||
"free-disk-space-threshold": 0.1 | ||
}, | ||
"client_settings": { | ||
"enable-nodes-configuration-manager": "true", | ||
"use-nodes-configuration-manager-nodes-configuration": "true", | ||
"admin-client-capabilities": "true" | ||
}, | ||
"internal_logs": { | ||
"config_log_deltas": { | ||
"replicate_across": { | ||
"node": 3 | ||
} | ||
}, | ||
"config_log_snapshots": { | ||
"replicate_across": { | ||
"node": 3 | ||
} | ||
}, | ||
"event_log_deltas": { | ||
"replicate_across": { | ||
"node": 3 | ||
} | ||
}, | ||
"event_log_snapshots": { | ||
"replicate_across": { | ||
"node": 3 | ||
} | ||
}, | ||
"maintenance_log_deltas": { | ||
"replicate_across": { | ||
"node": 3 | ||
} | ||
}, | ||
"maintenance_log_snapshots": { | ||
"replicate_across": { | ||
"node": 3 | ||
} | ||
} | ||
}, | ||
"zookeeper": { | ||
"zookeeper_uri": "ip://172.16.0.10:2181", | ||
"timeout": "30s" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/bash | ||
|
||
until ( \ | ||
/usr/local/bin/hstream-kafka --host hserver-1 --port 9092 node status && \ | ||
/usr/local/bin/hstream-kafka --host hserver-2 --port 9092 node status && \ | ||
/usr/local/bin/hstream-kafka --host hserver-3 --port 9092 node status && \ | ||
/usr/local/bin/hstream-kafka --host hserver-4 --port 9092 node status && \ | ||
/usr/local/bin/hstream-kafka --host hserver-5 --port 9092 node status \ | ||
) >/dev/null 2>&1; do | ||
sleep 1 | ||
done; |
Oops, something went wrong.