Cloud Hosting for Nigerian Cross-Border Store
Nigerian cross-border eCommerce stores are increasingly...




SurferCloud's pay-as-you-go cloud servers start at $0.05 per hour for a 2-vCPU, 2 GB instance, billed by the hour, with dedicated CPU, dedicated bandwidth and a 99.95% availability commitment. That price is the reason the question in this article matters: when a second box costs five cents an hour, the only defensible reason to stack your whole agent fleet onto one big machine is that you have not yet noticed what the machines share. SurferCloud's own hourly page states it plainly in the layout it sells: hourly compute is a shape, not a discount, and the shape you choose decides how many failures you get.
If you run one agent per machine, you can stop reading. If you run five, or twenty, or a hundred agents on a single host because "it has 32 GB and 16 cores and they are mostly idle", this article is about the bill that arrives in a form other than money. Your fleet will not fail because the box ran out of capacity. It will fail because the agents share one fate, and a shared fate is a correlation, and correlations do not show up in any per-agent dashboard you own.
Ask an operator how many agents fit on a box and you will get a number derived from a spreadsheet: total vCPU divided by the vCPU each agent needs, total RAM divided by the peak resident set, rounded down and then rounded down again because nobody wants to be the person who ran the box at 95%. That number describes how many agents can run at the same time. It does not describe how many can fail at the same time, and those are different questions.
The useful number is failure domains: how many independent units of failure your fleet contains. If ten agents share one kernel, one memory cgroup, one CPU quota and one pool of outbound ports, you own one failure domain, no matter what the arithmetic says about cores. The unit of the agent is the task. The unit of the failure is the host. Counting tasks per host while ignoring hosts per task is how fleets get built that look redundant on the whiteboard and behave like a single machine on the incident call.
None of this is a criticism of consolidation in general. Consolidation is correct when the agents are the same kind of thing with the same resource shape, when the failure you would experience is a clean restart, and when the cost of the extra machines is genuinely material. All three of those conditions are usually false for agent workloads, and the sections below are about why.
Colocation couples neighbours along every axis the operating system multiplexes. Each axis has a different failure signature, and each signature looks like something else. The table below is the one to keep. It is the same shape as the reasoning in why a sandbox is a residency permit rather than a boundary: the shared resource is not the problem, the shared *accounting* is.
| Shared resource | What one agent can do to its neighbours | Where the evidence lives |
|---|---|---|
| Memory limit | Fill the group's memory.max until reclaim fails; the kernel then kills a process in the group |
memory.events (oom_kill rising), not the agent's own logs |
| CPU quota | Exhaust the group's per-period quota in a burst; every thread in the group is frozen until the next period | cpu.stat field nr_throttled, not the application CPU gauge |
| Outbound ports | Burn the source-port pool talking to one endpoint; new connections then fail for everyone | EADDRNOTAVAIL in one agent's logs, nothing in the other agents' metrics |
| Kernel tables | Leak sockets or connections until the connection-tracking table is full and packets drop on an idle link | conntrack insert_failed; see the connection-tracking failure mode |
| Conversation state | Let one wrong turn enter the shared context, where peers read it as established fact | Trajectory review, not any runtime counter |
In cgroup v2, memory.max is the hard limit for a group. The kernel documentation is explicit about what happens when it is reached: if the usage cannot be reduced, the OOM killer is invoked *inside that cgroup*, and it will not kill tasks outside it. The accounting is hierarchical, and the counters you want are in memory.events: max rises as the group approaches the boundary, oom rises when the allocation is about to fail, and oom_kill rises for every process the kernel actually kills.
The part that catches fleets is which process dies. Victim selection is score-based, dominated by resident memory, so the largest process in the group is usually the one terminated. The largest process is frequently not the one that caused the pressure. Picture a fleet where nine agents are steady at 300 MB and one agent starts holding a growing conversation buffer. When the group crosses memory.max, the kernel does not have a way to know which agent misbehaved. It knows which one is biggest, and if one of the nine is a data-heavy worker with an 800 MB working set, the data-heavy worker is what disappears. The responsible process survives, its buffer keeps growing, and the cycle repeats on the next victim. This is exactly the accumulation pattern described in the four sites an agent leaks memory from, except now the leak punishes the neighbours instead of the owner.
There is a mitigation inside one box and it is a real one: set oom_score_adj to -1000 on the processes that must not die. The kernel documentation is equally explicit that such a task is treated as an exception and is never killed. But -1000 protects a process from the killer, it does not give it memory. Protecting the innocent worker means the killer moves down the score list and takes the next-largest process, which is now perhaps a second innocent worker. Isolating the cause requires a boundary, not a preference.
CPU limits in cgroup v2 are expressed in cpu.max as a quota and a period, both in microseconds, with a default period of 100,000 microseconds, which is 100 milliseconds. The quota is not a rate limiter that slows a process down gracefully. Once a group exhausts its quota inside a period, its threads are stopped until the next period begins.
This produces the failure that every container operator eventually meets and almost nobody plans for: average CPU utilisation reads 40%, the limit is nowhere near being hit, and tail latency is many times baseline. The average hides the mechanism, because the mechanism is a spike that consumed the quota in the first part of one period and then waited. That agent is not slow because it is busy. It is slow because it was frozen, and the freeze happened in windows your sampling missed.
Now co-locate. If five agents share one CPU quota, one agent's burst spends the group's quota for the period and the other four are frozen with it. They did nothing wrong. Their utilisation was low. Their latency spikes anyway. The counter that reveals this is nr_throttled in the cgroup's cpu.stat, and it exists precisely because the application-level CPU gauge cannot show it.
This is the same family of misreading as the counter that is divided by your core count and the three numbers in load average: the metric you have is a summary of a distribution you cannot see, and the distribution is where the outage lives.
Linux assigns outbound connections a source port from net.ipv4.ip_local_port_range, which defaults to 32768 through 60999. That is 28,232 ports. A single TCP connection is identified by the four-tuple of source address, source port, destination address and destination port. A connection that has closed does not release its four-tuple immediately: it sits in TIME_WAIT for the duration of the timeout, and on Linux the relevant timer defaults to 60 seconds, and tcp_fin_timeout is documented as 60 in the current tcp(7) manual page.
Put those two numbers together for a single destination. If a fleet is calling one model endpoint, one tool gateway or one internal API, the ceiling is roughly 28,232 connections per 60-second window, which is about 470 new connections per second. Above that rate, connections fail with EADDRNOTAVAIL, the address-not-available error, and the failure is per source IP because the port range is a property of the host, not of the process.
That last sentence is the whole problem. Two agents each doing 300 connections per second to the same endpoint are each comfortably under 470 and each report healthy. Together they are at 600, which is 28% over the ceiling, and the error lands on whichever agent happens to connect at the wrong moment. It will look like a flaky vendor, because from inside one agent the only observable is an occasional connection failure to a host that is demonstrably up. This is the same shape as the four different things that "port already in use" can mean, one layer out: the local port is not in use, the pool is empty.
A note on tuning before anyone reaches for sysctl. The kernel documents tcp_tw_reuse as disabled by default with an explicit warning that it should not be changed without the advice of a technical expert, because reusing a TIME_WAIT four-tuple is only safe under conditions involving timestamps that a NAT, a proxy or a load balancer in the path can violate. Widening ip_local_port_range buys you a larger constant. Neither change gives you a second pool. A second source IP does, and a second source IP is another instance.
The kernel mechanisms above are shared-hardware problems, and shared hardware has been studied for thirty years. The newer and more interesting finding is that agents couple through their conversation state as well, which means the correlation survives even if you fix the CPU, memory and port story perfectly.
A paper published on 3 November 2026, accepted at EMNLP 2026, analyses more than 1,600 execution traces across seven multi-agent frameworks and names the mechanism role drift: a turn-level violation of an agent's role contract. Its central observation is a sharing problem, not a modelling problem. Every agent conditions on the same shared conversation context while its role prompt stays fixed, and once one agent's out-of-role output enters that shared context, downstream agents treat it as valid state. The measured correlation between drifting away from your own role and leaking into another role's function is 0.76, which is the quantitative version of "the verifier started planning and the executor changed something nobody approved".
An earlier study, posted on 23 October 2026 and built from 7,300 task instances including 3,211 failed multi-turn trajectories, puts numbers on how this propagates. Recovery and correction failures appear in 94.9% of failed trajectories and consensus failures in 83.4%. Coordination failures are 3.6 times more likely in failures than in successes, persistent wrong framing is 7.5 times more likely, and premature consensus is 3.5 times more likely. The detail that should end any argument about whether a shared bus is cheap: among the 500 *successful* trajectories sampled, 91.2% still contained at least one error. Success was not the absence of mistakes. It was the presence of a recovery path.
Two more results from that work are worth carrying into a fleet design. Adding agents did not help: going from three agents to seven reduced reasoning errors but increased individual suppression from 11.37% to 17.70%, meaning larger groups got worse at letting a correct minority be heard. And the single largest design lever was not the team structure at all, it was evidence retrieval, which cut the failure rate on two multi-hop benchmarks from 74.6% down to 36.4%. Isolation and evidence both beat headcount. If you want the reliability reasoning behind that, it is the subject of why a success rate is not a reliability metric.
If one-box-per-agent sounds extravagant, note where the platforms that operate the largest fleets have landed. On 22 October 2026 Google announced Agent Compute Engine, a managed service that runs each agent in its own hardware-isolated micro-VM, suspends the compute environment when the agent is idle, and resumes it on the next task. The design detail that matters here is not the isolation itself but what it is used for: credentials, API keys and OAuth refresh tokens are kept outside the sandbox entirely, because a per-agent boundary is only useful if the things inside it are per-agent too. Alibaba's ACS Agent Sandbox took the same position in April 2026, offering micro-VM-level isolation on Kubernetes for production agents.
The convergence is not a fashion. It is what an operator does when the coupling failures described above stop being theoretical. When the platform vendor and the hyperscaler both conclude that the cheapest correct unit is one isolation boundary per agent, the question for everyone running a smaller fleet becomes: what is my boundary, and what does it cost me to have more of them?
There is one signal that separates a fleet with isolation from a fleet without it, and it is not utilisation. It is the count of independent failure domains, compared against the count of agents, and the honest way to get it is to ask a single question per incident: when this agent failed, how many others went with it? Every incident that takes more than one agent is a correlation, and correlations are what a shared host manufactures.
The per-agent dashboards will not tell you. They are built to answer "how is this agent doing", and the failure mode here is "this agent is fine and still broken". The table below is the translation guide.
| What the dashboard shows | What it looks like | What it actually is |
|---|---|---|
| Group CPU at 40%, tail latency 8x baseline | "We have headroom, the app is slow" | CFS quota exhausted in a 100 ms window; read nr_throttled |
| One agent has a growing RSS | "That agent has a leak, restart it" | The killer will take the largest process, which may be a different, healthy agent |
| Intermittent connect failures to one endpoint | "The vendor is flaky" | Ephemeral port pool exhausted by the sum of all agents on the host |
| Latency spikes on an idle link | "Network problem" | Connection-tracking table full; packets dropped while bandwidth is free |
| One agent answers off-topic with confidence | "Model quality regression" | A peer's out-of-role turn is now an established premise in the shared context |
The traditional objection to one-box-per-agent is overhead: idle machines cost money, and orchestration costs attention. Both are real. The hourly model changes the first one more than most teams have internalised, because the price scales with the number of boxes you run and not with how big each one is. Here is SurferCloud's current hourly ladder, rendered from the promotion page on 30 November 2026.
| Configuration | Bandwidth | Traffic | Price per hour | Approx. per month (730 h) |
|---|---|---|---|---|
| 2 vCPU / 2 GB | 1 to 10,000 Mbps | Unmetered | $0.05 | $36.50 |
| 2 vCPU / 4 GB | 1 to 10,000 Mbps | Unmetered | $0.07 | $51.10 |
| 4 vCPU / 8 GB | 1 to 10,000 Mbps | Unmetered | $0.13 | $94.90 |
| 8 vCPU / 16 GB | 1 to 10,000 Mbps | Unmetered | $0.25 | $182.50 |
| 16 vCPU / 32 GB | 1 to 10,000 Mbps | Unmetered | $0.49 | $357.70 |
Read the ladder as a set of trade-offs rather than a size chart, because that is what it is. The interesting comparison is not which row is biggest. It is what the same money buys in failure domains.
| Shape | Money | Cores / RAM | Failure domains |
|---|---|---|---|
| One 8 vCPU / 16 GB box | $0.25/h | 8 / 16 GB | 1 |
| Five 2 vCPU / 2 GB boxes | $0.25/h | 10 / 10 GB | 5 |
| One 4 vCPU / 8 GB box | $0.13/h | 4 / 8 GB | 1 |
| Two 2 vCPU / 4 GB boxes | $0.14/h | 4 / 8 GB | 2 |
The second row is the one to sit with. For the price of a single 8-core, 16 GB machine you can run five separate 2-core machines, which gives you more total cores, the same bandwidth guarantee per box, and five independent kernels instead of one. What you give up is 6 GB of aggregate RAM and the comfort of a single shell. What you gain is that an OOM event, a CPU-quota burst, a port-pool exhaustion and a context corruption all stop at one boundary instead of five.
That is not a universal recommendation, and the third row of the first table is why. If a single agent genuinely needs 16 cores and 32 GB, splitting it is not isolation, it is distributed computing, and distributed computing has its own failure modes. The split argument is about fleets of small, similar agents, which is what most production agent deployments actually are.
The recommendation depends on what your agent contains, and one paper on server sizing for agents gives the cleanest dividing line: an agent that drives a headless browser needs to be sized around that browser's peak, not around the model's context, and a single heavy page can push past 2 GB on its own. That analysis is in sizing a cloud server by interruption budget rather than by spec sheet, and it changes the choice here.
The tier to avoid is the top of the ladder, used the way it is usually used. A single 16 vCPU / 32 GB instance at $0.49 per hour is $357.70 a month, and if you buy it to host twenty small agents you have paid the most money in the table for the fewest failure domains in the table. It is the correct purchase for one genuinely large workload. It is the wrong purchase for a fleet, and it is the single most common shape mistake in agent infrastructure.
One honest note on hourly and monthly billing. The promotion page states directly that hourly billing is not discounted and points buyers at the monthly deals for savings. If your agents run continuously rather than in bursts, the hourly rate is a convenience, not the cheapest rate, and a monthly plan is the better buy. Hourly earns its place when the fleet's size tracks the work: scale out for a batch, scale back in, and stop paying for the boxes you no longer run. The isolation argument is about how many boxes you run, not about how you pay for them.
memory.max and cpu.max per agent group, watch memory.events and nr_throttled rather than utilisation, and add oom_score_adj protection only after you have confirmed which process you actually want to survive.Splitting a fleet does not make any individual agent reliable. A single agent with a memory leak will still leak on its own box; it will simply leak alone, which is an improvement and not a fix. It does not remove the shared context problem either. If your agents talk to each other through a message bus or a shared memory store, they are still coupled through state, and the papers above are the evidence. Isolation of compute is necessary and not sufficient.
It also does not come free. More boxes means more patch cycles, more SSH keys, more places for a credential to be forgotten, and more surface for the kind of exposure described in how quickly an exposed server gets attacked. If you split a fleet into twenty instances without an image pipeline and a configuration management story, you have traded one correlated failure for twenty unpatched ones. Split because the failure domains are worth it, and automate the fleet before you split it, not after.
Finally, a note on the limits you inherit with the product. SurferCloud's hourly plans use datacenter IPs with no replacement option, port 25 is blocked by default, and the free system disk is 40 GB except at São Paulo and Dubai, where it is 20 GB. Default usernames differ by image. None of that is a reason not to split, but it is the reason a split is not a drop-in: the port range, the default username and the disk size all have to be part of the checklist rather than discovered on the day.
How many agents should share one box? There is no universal number, but there is a test. If the agents are stateless, symmetric and short-lived, grouping them is fine and the group is one failure domain you have accepted. If any agent carries persistent state, drives a browser, or holds a credential that must not leak into a peer, give it its own box. The answer is rarely a number and usually a property.
Is a container the same as an isolation boundary? It is a boundary if you build one per agent and set memory.max and cpu.max inside it. Containers that share a cgroup share the accounting, and shared accounting is what produces the misdirected OOM kill and the group-wide CPU freeze. The container runtime does not decide the boundary. Your configuration does.
Can I just raise the limits instead? You can raise a limit until the host runs out of the resource. That moves the failure from the group to the host, where it is worse, because now everything on the host fails at once instead of one restarted process. Raising memory.max is a fix for a mis-set limit. It is not a fix for agents that grow without bound.
Doesn't one box per agent waste money? At $0.05 per hour it wastes about $36.50 a month per idle box, which is the honest cost. Compare that against the cost of a correlated incident in a fleet where one agent's leak took out the three that shared its memory group, and decide with the numbers in front of you rather than with the instinct that consolidation is always cheaper. It usually is cheaper per core. It is not cheaper per failure domain.
Where do I start if the fleet is already co-located? Count the couplings, then split the widest one. In most fleets that means the agents that share an outbound destination, because port exhaustion produces the failure that is hardest to attribute and the easiest to eliminate by moving one process to its own source IP.
The change is smaller than it sounds. Open the SurferCloud pay-as-you-go page and pick the tier that matches what your agent contains: the 2 vCPU / 2 GB tier at $0.05 per hour for stateless agents, the 2 vCPU / 4 GB tier at $0.07 per hour for anything with a browser or a local index. Deploy one per agent, or per small group of symmetric agents, from any of the 17 data centres closest to your traffic. Configure an explicit memory and CPU limit on each box even when only one agent lives there, so the accounting stays honest if a second one moves in. Then instrument memory.events and cpu.stat before you instrument anything else, because those two files are where the couplings announce themselves, and the utilisation graphs you already have are where they hide.
The fleet you want does not have more agents per host. It has more hosts per failure.
Nigerian cross-border eCommerce stores are increasingly...
As a small business grows, traditional on-premises serv...
We have a summary of SurferCloud VPS, which includes cl...