Multi Setup11
Multi Setup11
solana cli
sh -c "$(curl -sSfL https://release.solana.com/v1.18.4/install)"
export PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
solana --version
KEYPAIRS
DISK FORMATTING
lsblk -f
find the uuid/device name ( will be explained later )
make sure to format to ext4 , or have a free drive that can be used
lsblk -f to verify
LINUX TUNING
tune system
sudo bash -c "cat >/etc/sysctl.d/21-solana-validator.conf <<EOF
# Increase UDP buffer sizes
net.core.rmem_default = 134217728
net.core.rmem_max = 134217728
net.core.wmem_default = 134217728
net.core.wmem_max = 134217728
nano /etc/systemd/system.conf
if manager DefaultLimitNOFILE=1000000
if service LimitNOFILE=1000000
reload
sudo systemctl daemon-reload
relogin
INSTALLING JITO
oinstall github
git clone https://github.com/jito-foundation/jito-solana.git
cd jito-solana
export TAG=v1.17.28-jito
YELLOWSTONE INSTALLATION
cd target/release
realpath whatever.so
/root/yellowstone-grpc/target/release/libyellowstone_grpc_.so
/yellowstone-grpc/yellowstone-grpc-geyser
nano config
{
"libpath":
"/home/ubuntu/yellowstone-grpc/target/release/libyellowstone_grpc_geyser.so",
"log": {
"level": "info"
},
"grpc": {
"address": "0.0.0.0:10001",
"snapshot_plugin_channel_capacity": null,
"snapshot_client_channel_capacity": "50_000_000",
"channel_capacity": "100_000",
"unary_concurrency_limit": 1000,
"unary_disabled": false
},
"prometheus": {
"address": "0.0.0.0:8999"
},
"block_fail_action": "log"
}
disown
solana -u m catchup --our-localhost --follow
rpc node is http://127.0.0.1:8899
JUPITER SETUP
DOCKERFILE
FROM --platform=linux/amd64 debian:bookworm-slim
ENV RUST_LOG=info
CMD ["/root/jupiter-swap-api/entrypoint.sh"]
ENTRYPOINT.sh
#!/bin/bash
#!/bin/bash
chmod +x full_restart_jup.sh
chmod +x entrypoint.sh
server {
listen 80;
server_name localhost;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_pass http://localhost:8899;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
allow 45.26.169.142;
#allow 79.23.111.44; # Deph
#allow 139.99.120.207; # TomBz
#allow 77.164.248.163; # buyhighselllow2
deny all;
}
}
server {
listen 81;
server_name 5.199.170.104;
location / {
# limit_req zone=mylimit burst=10 nodelay;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
allow 45.26.169.142;
allow 24.88.4.135;
deny all;
}
}
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
# Define a rate limiting zone
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10000r/m;
sendfile on;
tcp_nopush on;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript
text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}