NVMe VPS in Canada: MySQL for a shop selling to North America
People rent a server in Canada when their customers are in North America but they would rather not keep the project under US jurisdiction. Most often it is an online shop: WooCommerce, OpenCart, Magento or a custom Laravel app. All of them have MySQL or MariaDB inside, and the database decides how fast the catalog opens and how smoothly checkout goes. If the database is bigger than the server's memory, NVMe gives you more here than extra cores.
When MySQL hits the disk
MySQL keeps working data in the InnoDB buffer pool in memory. While the product, order and session tables fit there, reads barely touch the disk. Easy to check: in the output of SHOW ENGINE INNODB STATUS find the Buffer pool hit rate line. A value of 1000 / 1000 means everything is in memory, and a fast disk matters mainly for writes. If it is noticeably lower, the database keeps reading from disk, and every catalog page waits for it.
Writes are different: they always go to disk. With the default innodb_flush_log_at_trx_commit=1, every order and every basket or session update is confirmed by a log write. During a sale, when orders multiply, a slow disk becomes a queue at the till. You can relax that setting, but then a server crash loses the last seconds of orders, and a shop should not do that.
How much memory and space to take
- Memory. Give 50 to 70 % of memory to the InnoDB buffer pool if the server runs only the database. On a shared server with PHP and a web server, less. For a shop with a few thousand products 4 GB is enough; for tens of thousands with filters, 8 GB or more.
- Disk. Besides the tables, it holds binary logs, temporary tables for complex filters and a backup copy. Binary logs without a retention setting can outgrow the whole database within a month. Set
binlog_expire_logs_secondsto match your backup scheme.
If the shop runs on WordPress, add a Redis object cache first: it takes repeated queries off the database and leaves the disk less work. More on setup on VPS for MySQL and VPS for an online store.
How to test the disk for MySQL
InnoDB works in 16 KB pages, so test with that block size and a mixed load:
fio --name=innodb --rw=randrw --rwmixread=75 --bs=16k --size=2G --iodepth=16 --direct=1 --runtime=60 --time_based
A good NVMe plan gives thousands to tens of thousands of operations with sub-millisecond latency. If you have already moved the shop, watch the database itself: turn on the slow query log and see whether simple primary-key lookups show up there. If they do while the CPU is idle, the disk is the problem.
Montreal, Toronto, Vancouver
Most Canadian plans are in and around Montreal in Quebec, the second big location is Toronto, the third Vancouver. Montreal and Toronto are about 10 to 15 ms from New York, so the shop is equally fast for customers in Canada and on the US East Coast. Vancouver is closer to the West Coast and Seattle. From London Montreal is usually 75 to 85 ms, from Frankfurt 90 to 100 ms: fine for the shop's admin panel, but keep the database and the site in the same data centre, or that latency lands on every query.
Canadian plans cap traffic more often than European ones, frequently at a few terabytes a month, and some charge a setup fee. Traffic is enough for a shop; count the setup fee in the yearly cost. If you are building for North America and weighing the neighbour, compare with NVMe VPS in the USA.
PIPEDA, tax and payment
Canadian companies process personal data under the federal PIPEDA, and in Quebec, where most servers are, also under the provincial Law 25. For a shop that means customer consent to data processing, a protected database and breach notification. Quebec's law additionally requires a risk assessment before data leaves the province, so a shop serving Quebec customers is better off keeping the database there. For European shops there is good news: the EU recognises Canada as adequate for commercial data under PIPEDA, so EU customer data can be stored there without extra contracts.
Canadian providers bill in Canadian or US dollars. Tax depends on the province: federal GST of 5 %, a combined HST of 13 % in Ontario, and Quebec adds its provincial tax on top of GST. Foreign private customers are usually not charged it. Payment methods for each plan are in the table; cards and PayPal are standard. An overview of the country is on VPS in Canada.