N
N
nikolay223232022-04-21 10:37:48
MySQL
nikolay22323, 2022-04-21 10:37:48

Mysql Storage in RAM?

There is an ubuntu 18.04 server
24 cores
112 gigs of RAM
Will be bitrix24.
Installed mariyadb.
How to set up a database so that all data is first stored on RAM but is immediately written to hdd. Naturally, if there is a reboot, everything will be lost. And therefore it is necessary that on the fly it records to hdd but at the same time gives it from the RAM. How to setup?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2022-04-21
@pfg21

one of the options :)
vixdevelop.blogspot.com/2016/09/zraid.html

V
Vitsliputsli, 2022-04-21
@Vitsliputsli

How to set up a database so that all data is first stored on RAM but is immediately written to hdd. Naturally, if there is a reboot, everything will be lost. And therefore it is necessary that on the fly it records to hdd but at the same time gives it from the RAM. How to setup?

What for? If you need a DBMS to work quickly, then they are created for this, everything is already there. Why invent a DBMS architecture if it has already been done? Especially without knowing anything about how they work.
Don't be under the illusion that you are now coming up with a better architecture than what professionals have been working on for decades. In addition, approximately as you described, MariaDB works.
Do not "tweak" the settings, the default settings are enough, by changing something you can "kill" the DBMS. You need to go into the settings when there is a specific problem, and you understand not only what setting can affect it, but also what other effects it will cause.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question