This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"preset": "psr12", | |
"rules": { | |
"align_multiline_comment": true, | |
"array_indentation": true, | |
"array_syntax": true, | |
"blank_line_after_namespace": true, | |
"blank_line_after_opening_tag": true, | |
"combine_consecutive_issets": true, | |
"combine_consecutive_unsets": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update_discord() { | |
echo "Downloading and installing the latest Discord (stable)..." | |
curl -L "https://discord.com/api/download/stable?platform=linux&format=deb" -o /tmp/discord.deb | |
if sudo apt install -y /tmp/discord.deb; then | |
echo "Discord has been updated successfully!" | |
else | |
echo "Failed to install Discord. Trying to fix dependencies..." | |
sudo apt-get install -f | |
fi | |
rm -f /tmp/discord.deb |
Esse DB utiliza alto processamento de IO, por isso algumas horas sobem, outras demoram pra subir e algumas ele só trava
O próprio DB tem seus scripts que ajustam essas configs para o sistema rodando fora do developer-mode
, em especifico o script scylla_io_setup que ajusta a propriedade fs.aio-max-nr
que normalmente é algo em torno de 65k.
Tem um calculo em cima disso no proprio DockerHub do ScyllaDB
Available AIO on the system - (request AIO per-cpu * ncpus) =
aio_max_nr - aio_nr < (reactor::max_aio + detect_aio_poll + reactor_backend_aio::max_polls) * cpu_cores =
aio_max_nr - aio_nr < (1024 + 2 + 10000) * cpu_cores =