Important points when working with hosting
Pay attention to hosting uptime
Your website should be available 24/7, and you should be notified in case of availability issues.
You can set up availability monitoring in different ways:
- With the help of a hoster, if he provides a similar service;
- Using a third-party online service;
- Install a monitoring system at home or in the office.
Monitor the load
Keep track of the load if you are hosting your website on a dedicated server or VPS.
Control:
- Load Average;
- consumption of RAM;
- working web services.
This way, you can take action even before problems become critical.
Collect and analyze logs
When analyzing logs, you will be able to track:
- Slow database queries;
- Errors that occur when working with the site;
- How do search engines crawl your site;
- Attempts to break in;
- DDOS attacks.
Prepare in advance for
You should have scripts for actions in case of problems:
- What to do if your hosting is running out of resources?
- What if the site is unavailable?
- What to do in the event of a DDOS attack?
- What to do if the site is hacked?
- What to do if the hosting does not work?
Backups
- Do not store on the same server.
- Have backups in multiple locations.
Do not use default system configs
The software is installed on the server with a default configuration file. These settings are responsible for the provisioning of resources for server services. By default, these settings are specified for a server with minimal resources. If you do not tune these settings, then your server will use only part of the available resources.