• bean
      link
      31 month ago

      Middle name Drop

  • @count_dongulus
    link
    721 month ago

    Alright who’s running the database on the same machine as the server…👀

    • @[email protected]
      link
      fedilink
      681 month ago

      If you can do this, do it. It’s a huge boost to performance thanks to infinitely lower latency.

      • @[email protected]
        link
        fedilink
        111 month ago

        And infinitely lower reliability because you can’t have failovers (well you can, but people that run everything in the same host, won’t). It’s fine for something non critical, but I wouldn’t do it with anything that pays the bills.

        • @[email protected]
          link
          fedilink
          24
          edit-2
          1 month ago

          I work for a company that has operated like this for 20 years. The system goes down sometimes, but we can fix it in less than an hour. At worst the users get a longer coffee break.

          A single click in the software can often generate 500 SQL queries, so if you go from 0.05 ms to 1 ms latency you add half a second to clicks in the UI and that would piss our users off.

          Definitely not saying this is the best way to operate at all times. But SQL has a huge problem with false dependencies between queries and API:s that make it very difficult to pipeline queries, so my experience has been that I/O-bound applications easily become extremely sensitive to latency.

          • @Katana314
            link
            English
            61 month ago

            I’m going to guess quite a people here work on businesses where “sometimes breaks, but fixed in less than an hour” isn’t good enough for reliability.

            • @count_dongulus
              link
              0
              edit-2
              1 month ago

              Yeah if you need even 99.9% uptime, the most downtime you can accept in a year is eight hours.

              • @trxxruraxvr
                link
                31 month ago

                Most businesses dont require that kind of uptime though. If i killed or servers for a couple of hours between 02:00 and 04:00 every night probably nobody would notice for at least a year if it wasn’t for the alerts we’d get.

          • @[email protected]
            link
            fedilink
            21 month ago

            A single click in the software can often generate 500 SQL queries, so if you go from 0.05 ms to 1 ms latency you add half a second to clicks

            Those queries don’t all have to be executed sequentially though, do they? Usually if you have that many queries, at least some of them are completely independent of the others and thus can execute concurrently.

            You don’t even need threading for that, just non-blocking IO and ideally an event loop.

            • @[email protected]
              link
              fedilink
              2
              edit-2
              1 month ago

              The catch is that they all need to run in the same transaction to be unaffected by other things going on in the database and to make updates atomic. A single transaction means a single connection, and ODBC/JDBC has no way of multiplexing or pipelining queries over a single connection.

              It’s probably theoretically possible to run some things in different transactions. But with all the different layers and complexity of the code (including third party components and ORMs like Hibernate), understanding all the failure modes and possible concurrency issues becomes intractable.

      • @[email protected]
        link
        fedilink
        English
        341 month ago

        and most every cpanel (and every other web host panel) box on the planet.

        web, ftp, database, mail, dns, and more. all on one machine.

        • @[email protected]
          link
          fedilink
          2
          edit-2
          1 month ago

          Most sites hosted on cPanel are relatively small and never need to horizontally scale. People running apps large enough to require multiple servers usually try to optimize their environment by reducing overhead (and cPanel adds quite a bit of it) and tend to not need a GUI for server admin.

    • @Xanvial
      link
      21 month ago

      I’m not that brave doing development by connecting to Production database

  • @cm0002
    link
    701 month ago

    Ok, now I need a 8 season animated show and at least 2 direct-to-TV movies of this

      • @[email protected]
        link
        fedilink
        11 month ago

        I’m not sure what the future of MariaDB is… It lacks a bunch of newer MySQL features, and they’ve deviated far enough that I don’t know if they can cleanly backport them from MySQL any more.

      • @[email protected]
        link
        fedilink
        81 month ago

        I do admit to moving the company cluster from MySQL to Postgres.

        But only most of the traffic, some traces still remain, so the original MySQL still works

      • @[email protected]
        link
        fedilink
        51 month ago

        I did two rounds of very long presentations comparing those two systems.

        Personal reasons:

        • SQL standard support is still very weak
        • lack of WAL
        • array support
        • weird replication support
        • utf8mb4 mess took too long to resolve
        • many things started to get better only after Oracle takeover
        • @[email protected]
          link
          fedilink
          31 month ago

          lack of WAL

          Isn’t that what the binlog is?

          array support

          This annoys me too. It’s not quite the same, but native JSON support landed in MySQL 5.7.8. It’s stored in a binary format.

          weird replication support

          How does PostgreSQL do it?

  • @esc27
    link
    601 month ago

    Random guess, a php error caused Apache to log a ridiculous number of errors to /var/log and on this system that isn’t its own partition so /var filled up crashing MySQL. The user wiped /var/log to free up space.

    • @harmsy
      link
      61 month ago

      That’s not far off of something that happened to me once a few years ago. My computer suddenly started struggling one day, and I quickly figured out that my hard drive suddenly had 500 gigs or so of extra data somewhere. I had to find a tool that would let me see how much space a given folder was taking up, and eventually I found an absolutely HUMONGOUS error log file. After I cleared it out, the file rapidly filled up again when I used a program I’d been using all the time. I think it was Minecraft or something. Anyway, my duck tape solution was to just make that log file read-only, since the error in question didn’t actually affect anything else.

  • @Buffalox
    link
    501 month ago

    All evidence point to suicide.

  • @jordanlund
    link
    221 month ago

    This process has been murdered mysteriously.