HELP WANTED - Self-hosting Activepieces For Massive Scale

Hello, we’re self hosting activepieces at the moment and running a few tests but the UI is super slow, and we’re not even running too many tasks at the moment.

Our configuration right now is the following:

services:
activepieces:
image: activepieces/activepieces:latest
container_name: activepieces
restart: unless-stopped
# ports:
# - 8080:80
environment:
- AP_ENVIRONMENT=prod
- AP_ENCRYPTION_KEY=00fef4d326961962e5b238733d2e100b
- AP_JWT_SECRET=c0c032471c3fdc4a9a7abd640abf41d29ff0154427ca4664c21dbfa6b72494e9
- AP_FRONTEND_URL=https://automate.scalablesellingsystem.com
- AP_POSTGRES_DATABASE=activepieces
- AP_POSTGRES_HOST=postgres
- AP_POSTGRES_PORT=5432
- AP_POSTGRES_USERNAME=postgres
- AP_POSTGRES_PASSWORD=xxxxxxxx
- AP_EXECUTION_MODE=UNSANDBOXED
- AP_SANDBOX_RUN_TIME_SECONDS=600
- AP_TELEMETRY_ENABLED=true
- AP_REDIS_URL=redis://default:xxxxd@1xxxxx6379
- AP_SIGN_UP_ENABLED=true
- AP_NODE_EXECUTABLE_PATH=/usr/local/bin/node
- AP_ENGINE_EXECUTABLE_PATH=dist/packages/engine/main.js
- AP_API_KEY=GgLRF8SSHD5GSezZhdV3
- AP_WEBHOOK_TIMEOUT_SECONDS=30
- AP_TRIGGER_DEFAULT_POLL_INTERVAL=5
- AP_FLOW_WORKER_CONCURRENCY=10
- AP_TEMPLATES_SOURCE_URL=https://cloud.activepieces.com/api/v1/flow-templates
volumes:
- activepieces_data:/data
networks:
- network_public
deploy:
mode: replicated
replicas: 4
placement:
constraints:
# - node.role == manager
- node.hostname == workerDB
labels:
- traefik.enable=true
- traefik.docker.network=network_public
- traefik.http.routers.activepieces.rule=Host(automate.dominio.com)
- traefik.http.routers.activepieces.entrypoints=websecure
- traefik.http.routers.activepieces.priority=1
- traefik.http.routers.activepieces.tls.certresolver=letsencryptresolver
- traefik.http.routers.activepieces.service=activepieces
- traefik.http.services.activepieces.loadbalancer.server.port=80
- traefik.http.services.activepieces.loadbalancer.passHostHeader=1

volumes:
activepieces_data:
external: true

networks:
network_public:
external: true

Anyone either knows how to self-host in a way where I can continuously bring more clients and scale the operations?

Thank you!

1 Like

Did you ever resolve your issues or did you give up?

We are experiencing the same issues when deploying locally to try and develop some custom pieces. It takes forever to load the ui elements. I personally am using WSL but the other team member is running linux and experiencing the same issues.

Which part of the UI? Can you share more? A video could help too

Use Docker Swarm - works well.