Score:1

MySQL 1 schema, 1 filesystem

ge flag

This is a ''general'' question. Hear me out.

Let's say I have a MySQL standalone or even a 3 or 5 nodes cluster. Would it be a good practice to have 1 filesystem per schema ?

For example, schema{1..5} would go in /var/lib/mysql/data/schema{1..5}

And I am not talking about RAID level under theses filesystems here... Just, plain FS. Let assume I use XFS here.

What gain would I potentially gain from it ?

  • Easier FS backup or even (LVM) backup/snapshot ?
  • Performance ?
  • Faster node data replication ?

What else...

Score:1
ua flag

"1 filesystem per schema" on a single physical drive -- NO!

  • No performance advantage.
  • No replication advantage.
  • A big maintenance DISadvantage when one schema starts to exceed its filesystem. Then you have to stop everything and repartition the disk!
  • LVM snapshot is fast anyway; being "faster" is not worth the other issues.
  • RAID striping gives some performance advantage without the other issues. But that assumes you have multiple physical drives.
  • If you expecting to have more than a terabyte in one schema, then say so. That could lead to a different discussion.
ge flag
Yeah. Well. I dinde't want to imply RAID in the question as there is already RAID behind. As for LVM, you are right... It's already fast enough.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.