New Three new products: fordway trading ERP, UEPS cloud rendering and WPECS delivery and operations View products →

Behind the seven-step wizard: WPECS's full-stack orchestration, DAG execution and failure classification

Engineering By SREYUN 0 views

"One-click deployment" is easy to say. The hard part is what happens after the click: dozens of hosts, twenty-plus components and hundreds of steps, some of which can run in parallel and some of which must wait, and something has to happen when a step fails. This article takes apart the planning and execution behind the WPECS deployment wizard.

Two phases: plan, then execute

A WPECS deployment has two phases, each owned by one module:

  • The planner normalizes the chosen solution and components into a standard description, assigns hosts and roles automatically, validates constraints (port conflicts, quorum sizes, memory overcommit), compiles a DAG from component dependencies, and picks a JDK for Java components (JDK 8 for big data components, JDK 17 by default for Java applications).
  • The execution engine runs the DAG in topological order in parallel, with steps on the same host serialized by a lock so two install scripts never change the package manager or system configuration at the same time; it supports pause, cancel, retry and resuming from where it stopped.

The "review the plan" step shows exactly what the planner produced: which steps run on which host, in what order and depending on what. You look first, then run.

Automatic role assignment by zone

When you reach the role matrix, a default assignment is already there, arranged by IP order and by zone: big data components sit together on a group of consecutive addresses (the more hosts, the larger the zone), databases, IoT and monitoring each get their own zone, and lightweight components such as gateways, storage and microservices share a general zone. With too few hosts, zones merge automatically, and with five or fewer shared hosts, components are balanced by memory.

Take the full-stack solution: it recommends 17 hosts with 32 GB each and assigns big data to 6 (ZooKeeper on the first 3), the general zone to 3 (Nacos, MinIO, FastDFS, Solr, Tomcat, Nginx, Docker), IoT to 3 (TDengine, EMQX), databases to 3 (MySQL dual primary, Redis Sentinel, MongoDB replica set) and monitoring to 2 (Prometheus, Grafana, ClickHouse), with consecutive addresses inside each zone. Checkboxes on host rows and component columns select or clear a whole row or column at once, and "re-arrange" restores the automatic result.

A reproducible execution order

At deployment time, hosts are sorted by IP and numbered node 1, 2, 3 and so on, so node 1 of a component is always the host with the lowest IP. Logs, progress, cluster membership and VIP primary/backup order are the same every time, and nobody has to work out "who was first this time" while troubleshooting on site. By default the nodes of one component run concurrently; when a site requires changes one machine at a time, switch to sequential mode and each host finishes before the next begins.

Pre-checks: find problems before touching anything

The environment pre-check looks at port usage, disk space, clock synchronization, permissions and artifact reachability, and compares each host's resources with the recommended totals of the components assigned to it. Results are classified as blocking, warnings, parameters to adjust and informational; warnings (for example, a host with less memory than its components recommend) have to be acknowledged, one by one or all at once, before you can continue, which stops "install first, worry later".

Every component verifies itself

Components are declarative: component.yaml describes versions, architectures, ports, parameters, artifacts, health checks and node roles, alongside install.sh, cluster_init.sh, verify.sh and uninstall.sh. A deployment ends with an integration verification: Kafka actually produces and consumes messages, HDFS actually writes and reads files, databases check replication, and so on. Installed is not the same as working, and delivery is only complete when verification passes. If one component fails verification, only the components that depend on it are affected; the whole deployment is not rolled back.

When something fails

Failure is normal in delivery: network hiccups, a mirror that has not synced a version, a host short on disk. WPECS does three things about it:

  1. Classifies it: log patterns sort a failed step into one of 14 categories, including artifact download failed, artifact checksum failed, artifact architecture does not match the host, disk full, package manager locked, system repository unavailable, network or DNS failure, port in use, insufficient permissions, out of memory, Java missing, service failed to start, another version already on the host and cluster members not ready, each with fix suggestions. If a package times out on every download source, the task page says "failure category: artifact download failed" and suggests checking that the URL is reachable, or caching the package in the artifact repository first and letting the platform relay it.
  2. Keeps the evidence: the full log of every step can be viewed by stage or by host on the task page, copied and downloaded.
  3. Retries only the failures: after fixing the problem on the host, "retry failed only" skips every step that already succeeded.

In demo mode, raise the failure rate under System settings, Demo failure injection to see classification, automatic rollback and retrying failures for yourself.

Deliverables: maintenance manual and delivery report

When a deployment finishes, the platform generates a maintenance manual: hosts, ports and paths for every service, configuration, data and log directories, start/stop and operations commands, and backup and restore procedures. The delivery report contains an acceptance checklist, architecture, execution records and security notes, optionally with AI-generated risk and optimization advice, and exports to PDF or Markdown. For components with a VIP, the "HA access entries" section at the top of the deployment page lists the VIP addresses and cluster connection strings.

In short

The wizard is only the surface. What makes one-click deployment dependable is a plan you can review, an order you can reproduce, pre-checks that surface problems before anything is touched, a component standard that verifies at delivery, and failure classification and retries that turn errors into tasks. Learn more on the WPECS product page.

Related articles