Product design v3 · 1 of 6

Rochen One Dedicated

A dedicated compute pool: a single-tenant cPanel server on AWS EC2 in the region the client chooses, with all software included (cPanel, LiteSpeed, CloudLinux, Imunify360, KernelCare, JetBackup, MailChannels, Softaculous), as many sites as they like at no extra charge, managed from the app exactly like Rochen One Shared, and everything billed hourly in arrears by rochen-api.

DecisionsThe model in one pictureCatalogueIncluded software & tiersSites on a poolNew tablesCode layoutAdding a regionOperational decisionsNovember code reviewOpen points

Decisions

TopicDecisionWhy
Billing shapeNothing in advance, everything hourly in arrears. No management fee, no software lines, no per-site charge.Chris: one price, all software included, billed like Rochen One usage.
Billing ownerrochen-api generates every Dedicated invoice from the change log, and also owns overdue suspension and termination. WHMCS skips everything Dedicated in code (invoice run, reminders, payment processing, suspension, termination, module actions).Advancing the due date alone does not keep WHMCS away (November review). A code skip keeps the admin pages reading normally, where a "Free Account" cycle would confuse staff.
What is billedCompute by template (region-priced) · storage allocated to the pool (100 GB minimum, R1 storage tier rates) · IOPS and throughput above the gp3 baseline · data transfer over the allowance.Storage and extras are metered exactly like the rest of Rochen One.
Sites on a poolUnlimited and free. There is one site product only, Rochen One Site (466). A site is a child of either Rochen One Shared (465) or a Rochen One Dedicated pool (464) and points at the matching server. Managed from the app exactly like Shared sites; no WHM or root for the client.One site product keeps site detection by id intact everywhere; the parent's product decides pricing and behaviour.
Parent and childrenWhatever happens to the pool happens to its sites: suspended, unsuspended, cancelled or terminated together.The instance going down takes the sites with it; the rows must say the same.
SoftwarecPanel, LiteSpeed, CloudLinux, Imunify360, KernelCare, JetBackup, MailChannels and Softaculous, all included. The licence tier is assigned by the system from instance type and the number of sites on the pool, and moves up or down as sites come and go.Chris + Jeremy's rules; no upsells.
Deploy gateStored card required and account in good standing. At order the card takes a small authorisation hold, released at once, so Stripe assesses it. If Stripe's risk level is elevated or highest, or Stripe puts the payment in review, the order waits for a staff review before anything is deployed. Otherwise the pool deploys on order.Nothing is invoiced up front, but AWS cost starts at launch. Stripe scores every payment already; the hold gives it a payment to score.
CatalogueOne product (464), a new Dedicated server group, one option group per region matched by name.Adding a region is data entry in WHMCS, no code.
AutomationResumable queued jobs in rochen-api on their own queue supervisor; per-service AWS member account.The legacy awscron path was never activated and has defects.
Code layoutServers/AWS shared SDK wrappers · Services/AWS stays MCS-only · new Services/RochenOne/Dedicated.The two products never share business logic, only AWS calls.
HostnameAuto-generated adjective-noun.directrouter.com; DNS in Cloudflare and reverse DNS created by the deployment.Rochen controls the zone; random names rule out phishing-style labels (Ben / Chris).

The model in one picture

Dedicated pool · product 464
one EC2 server in one region
template (size) · storage allocation · IOPS/throughput
billed hourly by rochen-api, nothing in advance
has → sites, software, a change log
Sites on the pool · product "Rochen One Site" (466)
unlimited, always free under a pool; tier or custom limits and a disk quota tracked per site
created and managed from the app only (Rochen One site code on the pool's server); no WHM access
the same product as Shared sites; parent_id is the pool (464) instead of the Shared plan (465), and the parent decides everything
Included software
cPanel & WHM · LiteSpeed · CloudLinux · Imunify360 · KernelCare · JetBackup · MailChannels · Softaculous
tier chosen from instance type + number of sites on the pool; re-tiered automatically
Change log = billing timeline
every applied change stores the whole configuration
create, resize, disk grow, IOPS/throughput, terminate open a new usage span; licence re-tiers and site events are logged but not billed
What the client sees
One product. GET /v1/product/464?region=506 returns the regions, that region's template prices, the storage tiers, the extras and the included-software list. POST /v1/order with one services[] item creates the pool and deploys it. The app shows the pool with its sites, software tiers, costs and history; "Create Site" offers "Rochen One (shared)" or any of the client's pools.

Catalogue

Product 464

FieldTodayBecomes
tblpricing (type product)−1 in every currencystays −1: there is no advance amount; tblhosting.amount is 0.00 as on every Rochen One service
servergroup17 "AWS US"new group Dedicated holding the region servers 498 London (eu-west-2), 500 Ohio (us-east-2), 506 Frankfurt (eu-central-1); MCS groups untouched
autosetuporder'': WHMCS must never call the legacy aws_CreateAccount
tblproductconfiglinksgroups 8 and 10links removed, no group linked (region groups are found by name; the legacy module reads every linked group and would collide)
Custom fieldshostname, aws_username, aws_id, instance_id, zabbix_id, can_reboot, can_scaleadd disk_size (allocated GB, as sites have); hostname is no longer written, the name lives on the pool's tblservers row
tblhosting.username / password—null, as on the Shared container. The instance's root user and password are stored once, WHMCS-encrypted on the pool's own tblservers row, exactly like every cPanel server (the control-panel code signs in to WHM with them; no API token is used). Never exposed to the client

Region option groups

Naming rule: Rochen One Dedicated (<region>) where <region> equals the hostname of a server in the Dedicated group. Prices in tblpricing per currency.

OptionTypeRangePriced?Meaning
Templatesdropdownone sub-option per instance size, r1d.<type>yes: monthly = hourly × 744the compute rate for the region
IOPSquantity3000–16000per 100 above 3000gp3 baseline included
Throughputquantity125–1000 MiB/sper 25 above 125gp3 baseline included
DataTransferquantity500 GB allowancemsetupfee allowance, monthly per GB aboveoutbound transfer
cPanelLicence · LiteSpeedLicence · ImunifyLicencedropdowntier namesnorecords the tier the system assigned, visible in the WHMCS service page (Chris's suggestion)
Storage is not in the region groupsThe pool's allocation is priced with the Rochen One storage tiers (the Shared DiskSize [1-5] … [201-*] sub-options in the client's currency), the same in every region. rochen-api walks those bands over the client's total dedicated storage. Folding shared-site storage into the same band is not done in v1 (it would need WHMCS billing code); see Open points.

dedicated_templates holds one row per Templates sub-option (AMI per region, vCPU, RAM, EBS-optimized, burstable, description), edited from a new WHMCS admin page cloned from configawstemplates.php. php artisan dedicated:check-catalogue verifies regions, groups, templates and prices.

Included software & tiers

Licence products are not sold any more; they only supply the Manage2 package ids and CLN product codes. The tier rules live in config/dedicated.php. The count that drives them is the number of live Rochen One Site services whose parent is the pool (Active, Pending or Suspended); a daily reconcile compares it with the cPanel account list on the server.

SoftwareProviderTier rule
cPanel & WHMManage2 (add to IP, change package)1 account → Solo · 2–5 → Admin · 6–30 → Pro · 31–100 → Premier 100 · then Premier 150, 200 … 500
Imunify360CLN key, usage limit1 → 1 user · 2–30 → 30 users · 31–250 → 250 users · 251+ → unlimited
LiteSpeedLiteSpeed (API to confirm; change of type by ticket in v1)m7i.large: ≤5 accounts → Site Owner, >5 → Web Host Lite · m7i.xlarge: ≤5 → Site Owner Plus, >5 → Web Host Essential · 2xlarge → Professional · 4xlarge → Enterprise · 8xlarge and up → Elite (instance decides alone from 2xlarge)
CloudLinux · KernelCareCLN keysone per server
JetBackupJetLicenseone per server
MailChannelsConsole sub-accountone per server
SoftaculousSoftaculous NOC API (licence to the IP; API to confirm, ticket in v1 until then)one per server

When tiers move

A site created or deleted, a template change, and a daily dedicated:retier-licences reconcile. Up-tier at once; down-tier only after 24 hours below the threshold.

What a re-tier does

Provider call (change package, update key limit), the three tracking options updated, a change_licence row in the change log. Never a line on an invoice.

Where ids live

dedicated_instances.licences json: provider, tier, external id or key id per software. Secrets only in SSM.

Sites on a pool: Rochen One Site (466) with a pool as parent

There is no second site product. A site on a pool is an ordinary Rochen One Site service whose parent_id is the pool's hosting id. Site detection stays "product id 466" in WHMCS, the API and the app; one extra question, "is the parent a pool?", decides price and behaviour.

AttributeSite under Rochen One Shared (465)Site under a Dedicated pool (464)
Product466 "Rochen One Site" for both
parent_idthe client's Shared planthe pool
tblhosting.serverthe region's shared serverthe pool's own tblservers row
Resource limitsResourceLevel option, Tier 1–8, billed hourlyno option row; new admin-only custom fields on 466, speed, pmem, io, iops, ep, nproc, hold the limits (a tier preset or custom values), free
disk_sizebilled in the plan's storage tiersa quota inside the pool's volume, free
Billing logrochen_one_logs rows, replayed by WHMCSnone; never counted in any Shared plan's options
Statusits ownfollows the pool: suspended, unsuspended, cancelled and terminated with it

One predicate

API: Dedicated::ownsSite(Hosting) is true for a 466 row whose parent's product is 464. WHMCS: rochen_isDedicatedSite($hostingId) does the same. Every place that today assumes "a site's parent is the Shared plan" asks it first.

Where the predicate is needed

API: order routing, site deploy (no billing log, no trial credit, pool-site ready mail, limits from custom fields), update and delete (no plan option maths), the Shared price estimate for Indian mandates. WHMCS: the one module hooks that write billing logs and plan options. App: the Shared site-count used for pricing, the disk page, the subscription line.

Created from the app only

The site chooser lists Rochen One (shared) and each pool. A pool site is ordered as {product: 466, parentId: pool}; the server comes from the pool. Web only, like every purchase flow.

Resources distributed as the client wishes

The pool page sums site quotas and limits against the pool's allocation and instance size and warns when oversubscribed; a single quota larger than the pool's volume is refused. Data transfer stays per pool.

New tables

Three tables in rochen-api migrations (2026_10_01_00000N_*). Nothing from aws, aws_template, aws_data_transfer or rochen_one_logs is used.

tblhosting (WHMCS)
pool: product 464, amount 0
pool: username and password null; server = the pool's own tblservers row
sites: product 466 "Rochen One Site", parent_id = pool, server = the pool's server row, limits in custom fields, no option row
status changes cascade from the pool; WHMCS skips these rows in code
hosting_id → both new tables
dedicated_instances · 1 row per pool
AWS-side configuration only: instance_type, template_id, image_id, disk_size (allocation), volumes (ids, size, iops, throughput), eip allocation/association ids, key pair name, security groups, aws account id, zabbix host
server_id = the pool's own tblservers row, created right after the Elastic IP is allocated; region_server_id = the region row. Hostname, IPs and root credentials live only on tblservers
licences json · site_count (live rows, cached for listings)
lifecycle: status (incl. pending_review), review json (reasons, decision, admin), plan json (resumable steps), timers
billing: billed_through, data_transfer json per month
template_id → dedicated_templates
dedicated_server_changes · append-only
billable: create, resize_instance, resize_disk, resize_iops_throughput, terminate
logged only: change_licence, site_added, site_removed, suspend, unsuspend, reboot, stop, start, rotate_key, cancel, cancel_termination, close_account, reconcile
actor · from · to (the complete resulting config) · billable
status requested → applying → applied | failed | rolled_back
applied_at is immutable: it is the billing timeline
dedicated_templates
option_id → Templates sub-option
region · instance_type · image_id
cpu · ram · ebs_optimized · burstable
description · active
edited in the WHMCS admin page
Rules
Every applied change stores the whole configuration, never a delta. Rows are never edited after they are applied; corrections are new reconcile rows. A usage span runs from one billable applied_at to the next.

Code layout

app/Libraries/Servers/AWS/*

Shared AWS SDK wrappers used by both products: ClientFactory, Organizations, SSOAdmin, Account, IAM, EC2, SSM, CostExplorer. No product logic.

app/Libraries/Services/AWS/*

Legacy Fully Managed Services only. Untouched.

app/Libraries/Services/RochenOne/Dedicated/*

Dedicated (show, store, showHosting, updateHosting, suspend, delete, costs, sites), Provisioning/Runner + steps, Licences/* providers behind a LicenceProvider contract + TierRules, Invoicing/RenewalInvoice, tickets.

Jobs & commands

DeployDedicatedInstanceJob, TerminateDedicatedInstanceJob, ResizeDedicatedInstanceJob, ResizeDedicatedDiskJob, RetierDedicatedLicencesJob, RotateDedicatedKeyJob; dedicated:* commands in cmd.html.

Adding a region

  1. Add a server rowtblservers: name "Paris", hostname eu-west-3; add it to the Dedicated server group.
  2. Create the option groupName it Rochen One Dedicated (eu-west-3). Add Templates, IOPS, Throughput, DataTransfer with regional prices in every sold currency, and the three licence-tracking dropdowns.
  3. Add Templates sub-optionsOne per instance size offered there, named r1d.<type>, monthly price = hourly × 744.
  4. Fill dedicated_templatesIn the WHMCS admin page: region AMI, vCPU, RAM, EBS-optimized, burstable, description.
  5. Run the checkphp artisan dedicated:check-catalogue must pass. The region appears in the store on the next product fetch.

Operational decisions (Ben's review, Chris's answers)

#PointDecision / proposal
1SnapshotsNo EBS snapshots. The 30-day figure was this design's invention; MCS has none. Backups are JetBackup to a per-server Wasabi bucket, which is what survives deletion. The "daily EBS snapshots" line leaves the included list.
21PasswordDeployment writes each server's credentials (root password, licence keys, Wasabi key) as one item into a dedicated inbox vault through a 1Password service account that has access to that vault only. Staff move items to the real vault. The deployer never reads any other vault; the residual is that it can read its own inbox until items are moved. No manual step during deployment. SSM stays the source the instance itself boots from.
3Failed deploymentLicences bound to the IP are expired and the instance, IP and volumes released automatically when a deployment finally fails; a retry starts fresh (new IP, new licences), reusing the member account.
4DeletionThe 1Password item and the Wasabi bucket are kept. The system has no Wasabi delete permission; termination opens a Maintenance ticket "Wasabi bucket to review" and mails devops.
5Elastic IP after terminationHeld unassociated for 3 days (dedicated.ip_hold_days), then released by a daily command. A redeploy within the hold reuses the IP, so DNS never changes.
6HostnameAuto-generated adjective-noun.directrouter.com (for example signal-fox), unique, created in Cloudflare (API token scoped to the directrouter.com zone, DNS edit only). The client does not choose it; staff can rename on request. No phishing-style names possible.
7Largest instance / non-payment riskproposal per-account ceiling: accounts with fewer than 3 paid months (or any overdue history) may run one pool up to m7i.xlarge; established accounts up to m7i.4xlarge; anything larger, or more pools, needs a staff approval recorded on the client (dedicated_limits custom field or config override). The store hides sizes above the ceiling and explains why.
8New-account monitoringproposal a "new pool created" mail to devops with client, fraud score, template and region; daily data-transfer log raises a ticket when a pool younger than 30 days passes 1 TB in 7 days, or any pool passes 5 TB in a month; a weekly digest of pools per account age. Manual watch of new accounts remains the rule initially, as Chris said.

November code review: what changed in the plan

The design was checked against the code on 17 November 2026 (rochen-api, WHMCS, rochen-app). The product decisions held; these integration points were corrected.

September design saidWhat the code does nowPlan now
Advance the due date and WHMCS never touches a poolWHMCS writes a zero line and auto-pays it (which can start a stopped instance), mails reminders, and suspends from unpaid invoice itemsWHMCS skips pools and their sites in code; rochen-api owns invoicing, suspension and termination
A second site product, "Rochen One Dedicated Site"Site detection is by product id 466 in all three code bases; any other product is treated as a planOne site product (466) with a pool as parent
Order and deploy go through the existing service dispatchAn aws order answers 501, and passes with no payment method at all; the server type is the dispatch key in about 25 placesA Dedicated predicate at each dispatch point; the order guard requires a card for pools
Reuse the Shared site deploy as isIt is tier-only, always writes the billing log, sends the Shared mail and can grant trial creditExtract a shared seam; pool sites take limits from custom fields and skip the log, the credit and the mail
Store a WHM API token on the server rowControl-panel code signs in with the root user and password; the token column is unusedRoot credentials on the server row only; no token step
disabled = 1 keeps the server row inertModule calls and the weekly disk refresh ignore it; WHMCS can auto-assign the active server of a typeRow is never the active server of its type, stays out of fill, and no site points at it before it is enabled
Monthly command calls the invoice builder for the clientThat is the full client sweep; orders now invoice only their own itemsInsert usage items, then invoice only those, under a per-client lock
Whole hours per span, like MCSMCS is fractional hours with an exclusive month end since OctoberFractional hours; rounded only in the description
Purchase pages on every platform, a Create Site menuPurchases are web-only; site creation goes through a chooser pagePool purchase and pool sites are web flows; pools appear in the chooser
No aws rows is harmlessA daily cron mails devops about every Active aws service without a tracking rowPools excluded from that check

Conventions picked up since September: the users table and Passport, InnoDB pinned on every new table, new flags pinned off in the test config, report-mode first runs with alert mail for scheduled commands, and no development addresses in the published API docs.

Open points

PointWorking assumption
Authorisation hold for Indian cardsTo verify in Stripe test mode: the hold for INR cards under the e-mandate rules. Settled otherwise: 1.00 in the client's currency, never captured; staff review when Stripe's risk level is elevated or highest, the outcome is manual_review, or Stripe could not assess the payment.
Storage tieringBands walked over the client's total dedicated storage (all pools) at the R1 storage rates. Rolling shared-site storage into the same band would need WHMCS billing code, so it is not done in v1. Confirm with Chris.
Instance sizes per regionm7i family starter set in the mock-up with example prices; the real list is data entry
LiteSpeedTier rules from Jeremy's sheet; xlarge with ≤5 accounts read as Site Owner Plus. Licence API to confirm; type changes by ticket until then
Instance-size ceiling and new-account alertsProposals in the operational table; thresholds to agree with Chris and Ben
Tier hysteresisUp at once, down after 24 h below the threshold
DefaultsStaff review: reminder after 2 days, order cancelled after 7 days without a decision · 3-day Elastic IP hold after termination · 24 h abort window on immediate cancellation · suspension 5 days after an unpaid invoice's due date, as WHMCS does for other products
Legacy security fixIndependent of this product, still open: stop sending keys/aws.json as instance user-data in the legacy module and rotate those keys
Rochen One Dedicated · product design v3 · November 2026