Skip to content

VPS: Disk Cache – Standard or Database-Optimized?

Find out which disk cache mode is right for your VPS and how to change it in the ZapX dashboard → Learn more

18 November 20262 min read9 Views0 helpful

Introduction

When your VPS writes data to its disk, the disk cache mode determines when the write operation is considered complete. For most applications, Standard is the best choice. For databases with many small transactions, Database-optimized can be faster.

You can change the mode yourself in your ZapX dashboard at no extra charge, and switch back at any time.

The two modes

  • The fastest mode for normal read and write operations and large amounts of data.
  • Suitable for web servers, game servers, files, backups, and most applications.
  • Data that your system or database explicitly flushes (e.g., with fsync) is also stored permanently in this mode before confirmation is returned.

We automatically choose the right technical setting based on your VPS storage: no additional cache on local NVMe disks, and a write cache on our Ceph storage that respects your system's flush commands.

Database-optimized

  • Each individual write operation is stored permanently before your system receives confirmation.
  • Faster for databases that flush after every transaction, such as MySQL, MariaDB, PostgreSQL, or SQLite.
  • Slower when handling large amounts of data, such as copying large files or creating backups.
Warning

Rarely useful on Ceph storage If your VPS is on our Ceph storage, Database-optimized significantly reduces normal write performance, while databases get little to no speed improvement. In this case, stick with Standard. Our support team or the AI assistant in your dashboard can tell you whether your VPS is on Ceph or local NVMe disks.

Tip

How can I tell if this mode is worth using? If your VPS mainly runs a database that writes many small changes (such as a shop, forum, or game server database with many players), and saving data takes a noticeable amount of time, try Database-optimized. If anything runs slower afterward, simply switch back to Standard.

Change the mode

  1. Open your VPS in your ZapX dashboard and go to the Settings tab.
  2. Select the mode you want in the Disk Cache card.
  3. Click Save.
  4. Then restart your VPS from the panel, for example, using the Restart Now button in the card.
Warning

A restart from the panel is required The new mode takes effect only after you shut down and start your VPS again from the panel. Restarting from within the server (e.g., using reboot or restarting Windows) is not enough. If your VPS is stopped, the new mode takes effect the next time it starts.

The setting applies to all disks on your VPS and remains in effect after reinstalling and restoring a backup.

Frequently asked questions

Is either mode unsafe? No. In both modes, data that your system explicitly flushes is stored permanently. The difference is how fast they are for different applications.

Can I change the mode at any time? Yes. You can switch as often as you like. You need to restart from the panel after each change.

My storage doesn’t support the mode on all disks? On some older storage types, Database-optimized is technically unavailable. The card will let you know. Standard remains active on those disks.

FAQ

Frequently asked questions

It determines when a write operation on your VPS is considered complete. Standard is fastest for most applications, while Database-optimized immediately stores each write permanently and is faster for databases with many small transactions.
Choose it if your VPS mainly runs a database such as MySQL, MariaDB, PostgreSQL, or SQLite that flushes after every transaction. Standard is usually better for web servers, game servers, files, and backups.
Rarely. On Ceph storage, this mode significantly reduces normal write performance while databases get little to no speed improvement. Standard is the better choice.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 Users found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.