-
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.
* init param ftp test * add ftp client * try lftp dl in command * use wget * try with depends on * fix indent * basic healthcheck ftp * update check * dev * rm depends upon for prover * separate ftp and main services * try staggered depends upon * no verbose wget * update readme * fix log time * huge page setting in multi node * update readme * readme update * use our explorer server params files and change name * ZKWAS-303 (#8) * start prover-node service script * fix syntax * Update README.md * add dockerignore * update release hash * update hash --------- Co-authored-by: Yimin Yu <[email protected]>
- Loading branch information
Showing
6 changed files
with
145 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./mongo |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 | |
ARG DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=Etc/UTC | ||
# Install required packages and setup ssh access | ||
RUN apt-get update && apt-get install -y --no-install-recommends openssh-server sudo cmake curl build-essential git && rm -rf /var/lib/apt/lists/* \ | ||
RUN apt-get update && apt-get install -y --no-install-recommends openssh-server sudo cmake curl build-essential git wget && rm -rf /var/lib/apt/lists/* \ | ||
&& sudo apt update -y && sudo apt install -y apache2-utils \ | ||
&& mkdir /var/run/sshd \ | ||
&& /etc/init.d/ssh start \ | ||
|
@@ -19,7 +19,7 @@ RUN git config --global url.https://github.com/.insteadOf [email protected]: | |
|
||
RUN git clone https://github.com/DelphinusLab/prover-node-release && \ | ||
cd prover-node-release && \ | ||
git checkout be216b3fdb562a7e7d5982c6262768e6c977015c | ||
git checkout a298d2feffd8296cc98b97caf314424942ea1a43 | ||
|
||
WORKDIR /home/zkwasm/prover-node-release | ||
|
||
|
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,20 @@ | ||
nvidia-smi && \ | ||
# Huge Pages | ||
echo 'Checking Huge Pages configuration:' | ||
cat /proc/meminfo | grep Huge | ||
ls -lh /dev/hugepages | ||
|
||
# Check HugePages_Free | ||
hugepages_free=$(cat /proc/meminfo | grep -i hugepages_free | awk '{print $2}') | ||
echo "HugePages_Free: $hugepages_free" | ||
|
||
if [ $hugepages_free -lt 15000 ]; then | ||
echo "Error: HugePages_Free ($hugepages_free) is less than 15000. Please make sure HugePages is configured correctly on the host machine. Requires 15000 HugePages configured per node." | ||
exit 1 | ||
fi | ||
|
||
# Download param files from local FTP server | ||
wget -r -nH -nv --cut-dirs=1 --no-parent --user=ftpuser --password=ftppassword ftp://localhost/params/ -P /home/zkwasm/prover-node-release/workspace/static/ && \ | ||
time=$(date +%Y-%m-%d-%H-%M-%S) && \ | ||
CUDA_VISIBLE_DEVICES=0 RUST_LOG=info RUST_BACKTRACE=1 ./target/release/zkwasm-playground --config prover_config.json -w workspace --dryrunconfig dry_run_config.json -p \ | ||
2>&1 | rotatelogs -e -n 10 logs/prover/prover_${time}.log 100M |
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,19 @@ | ||
services: | ||
params-ftp: | ||
image: zkwasm/params | ||
network_mode: "host" | ||
# ports: | ||
# - "21:21" | ||
# - "30000-30009:30000-30009" | ||
environment: | ||
PUBLICHOST: "localhost" | ||
FTP_USER_NAME: ftpuser | ||
FTP_USER_PASS: ftppassword | ||
FTP_USER_HOME: /home/ftpuser | ||
# ADDED_FLAGS: "-p 2121:2121 -p 30000-31000:30000-31000" | ||
healthcheck: | ||
# Basic health check to ensure the FTP server is running | ||
test: "ls -l /var/run/pure-ftpd.pid" | ||
interval: 30s | ||
timeout: 10s | ||
retries: 3 |