• Hello, I have 8500 posts on my website. My website runs smoothly but when I publish a post my server load goes 100% and it gives cloudflare time out and after reload it gives database is not connected. After few minutes, my server load goes normal, website starts opening fine and post gets published. Every time when I publish a new post same thing happens. How to solve it?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi

    A CloudFlare timeout will be shown if it fails to establish an HTTP handshake after 15 seconds.

    The error ” Database is not connected” may be due to a slow server.

    I have faced the same type of error on my e-commerce website. It works well, but sometimes it will show an error, like an error on connecting to the server. After a few minutes, it will work well. I tried several ways to clear the error. But when I spoke with the hosting provider, they said that “there is a problem on the server and they are working on it.”

    So you can contact your hosting provider and make sure your hosting server works well.

    If it still didn’t work, don’t hesitate to reach back. We can try another way.

    Thread Starter davecoledave

    (@davecoledave)

    I am using hetzner dedicated server. Generally my server load is only 4-5 cpu in 16 cpu. Once I publish a post server load goes 100% and database is not connected error shows. Otherwise my website runs smoothly. Only server load goes high if I publish a post.

    It’s a common thing, it happens sometime.
    Even I face this kind of problems.

    Hopefully reason for your error is revealed.

    Thread Starter davecoledave

    (@davecoledave)

    any solution for this because whenever I publish a post website goes down. I have daily 20-25 article publish on website so it goes down daily 20-25 times. Each time it takes almost 5 minutes to become normal. So 5*25=125 minutes daily downtime.

    May I know what type of hosting do you use?
    And it will be a better one If you share your server dick space(your storage space in server….eg-20gb disk space), Bandwith, Daily visitors of your website.

    Thread Starter davecoledave

    (@davecoledave)

    I am using hetzner dedicated server AX series.
    AX51-NVME
    AMD Ryzen? 7 3700X
    64 GB DDR4 ECC
    2 x 1 TB NVMe SSD
    One partition is in raid.
    1gbps unlimited bandwidth.
    100k daily visitors.
    Generally server load is 4-5 cpu. Once I publish post server load goes 100%.

    Hi

    You have good server configuration.
    Contact your hosting provider and check whether there is a problem in server.
    I hope they will clear this problem.

    It comes after a new update by Wp I hope they fix it I contact my hosting providers too cant help waiting…

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wordpress time out and database error’ is closed to new replies.