fix: add auto/static sharding info to readme

This commit is contained in:
Arseniy Klempner 2025-09-05 14:23:28 -07:00
parent 40b3167cc5
commit 4c079158b5
No known key found for this signature in database
GPG Key ID: 51653F18863BD24B
3 changed files with 7 additions and 40 deletions

View File

@ -45,10 +45,7 @@ RUN npx playwright install --with-deps chromium
ENV PORT=8080 \
NODE_ENV=production \
CHROMIUM_NO_SANDBOX=1 \
WAKU_CLUSTER_ID=${WAKU_CLUSTER_ID:-} \
WAKU_SHARD=${WAKU_SHARD:-} \
WAKU_ENR_BOOTSTRAP=${WAKU_ENR_BOOTSTRAP:-}
CHROMIUM_NO_SANDBOX=1
EXPOSE 8080

View File

@ -24,10 +24,15 @@ Configure the Waku node using environment variables:
### Network Configuration
- `WAKU_CLUSTER_ID`: Cluster ID (default: 1)
- `WAKU_SHARD`: Specific shard for static sharding (optional)
- `WAKU_SHARD`: Specific shard number - enables static sharding mode (optional)
**Sharding Behavior:**
- **Auto-sharding** (default): Uses `numShardsInCluster: 8` across cluster 1
- **Static sharding**: When `WAKU_SHARD` is set, uses only that specific shard
### Bootstrap Configuration
- `WAKU_ENR_BOOTSTRAP`: Enable ENR bootstrap mode with custom bootstrap peers (comma-separated)
- `WAKU_LIGHTPUSH_NODE`: Preferred lightpush node multiaddr (Docker only)
### ENR Bootstrap Mode

View File

@ -1,35 +0,0 @@
import path from "path";
import { fileURLToPath } from "url";
import NodePolyfillPlugin from "node-polyfill-webpack-plugin";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default {
mode: "production",
entry: "./web/index.js",
output: {
path: path.resolve(__dirname, "web"),
filename: "bundle.js",
clean: true
},
module: {
rules: [
{
test: /\.ts$/,
use: "babel-loader",
exclude: /node_modules/
}
]
},
resolve: {
extensions: [".ts", ".js"],
fallback: {
fs: false,
net: false,
tls: false
}
},
plugins: [new NodePolyfillPlugin()],
target: "web"
};