Number 4: Infrastructure - 5 lỗi cần tránh trong Drupal

Number 4: Infrastructure - 5 lỗi cần tránh trong Drupal

>>Number 1: Architecture: 5 lỗi cần tránh trong Drupal Website

>>Number 2: Security 5 lỗi cần tránh trong Drupal Website

>>Number 3: Performance - 5 lổi cần tránh trong Drupal Website

>>Number 4: Infrastructure - 5 lỗi cần tránh trong Drupal

>>Number 5: Maintenance - 5 lỗi cần tránh trong Drupal

In previous articles in this series, we’ve covered the areas of architecture, security and performance. All of these aspects are affected by your infrastructure from the time of development to deployment. 

Infrastructure covers the stack your website lives on, including the server, the database and any software layers, such as Varnish or Memcached which ensure your visitors have a snappy experience. For example, planning the infrastructure from the start and developing on the same environment can greatly reduce variables and risk at launch time. Having a reliable multiple environment configuration and a solid disaster recovery plan shouldn't be left to last-minute decisions. When it is, mistakes start arising. Here's a few tips to avoid the most common errors. 

Best Practices

  • Size your stack correctly, not too large, not too small. This can ensure you're economically prepared for anything.
  • Bottlenecks can arise from the hardware or from from processes hogging memory. Check logs for errors, and prepare for growth and spikes. Your stack is only as fast as the slowest component. Focus your efforts there; you'll probably find low hanging fruit.
  • In terms of security, it’s also crucial to configure to protect from internal attacks as well as external attacks.

Size your stack properly

  • Mistake: Server's hardware capacity is sufficient but misconfigured. 

  • Example: Database server set large enough, with 48GB of memory, but InnoDb buffer pool set for only 1GB.
  • Solution: Take into account all aspects of stack configuration . Use tools such as mysqltuner.pl 
(see Recommended Tool) to analyze your database.

Let Varnish take the hit

  • Mistake: Misconfiguration causes traffic to bypass Varnish and hit the server.

  • Solution: Check response headers to ensure that pages you expect to be cached, are. Ensure that modules aren't setting session variables unnecessarily.

Avoid exposure to vulnerabilities

  • Mistake: Remote connections to the database, Memcached, or Solr are allowed.
  • Example: Assuming an external firewall will provide adequate protection, the port that runs Memcached is not protected via IPtables.

  • Solution: As many as 50 percent to 70 percent of attacks can be internal . Forbid remote connections to the database, Memcached or Solr, and maintain this configuration through any infrastructure changes.

Recommended Resources

  • MySQL tuning script: mysqltuner.pl or MYSQLTuner. It will present current configuration variables and status data for your MySQL installation, along with some basic performance suggestions.
  • You can also find out more about our Infrastructure workshops useful for operations teams new to Drupal or LAMP requirements. Especially if you're building out your own infrastructure, instead of going with a managed solution like our own hosting.
  • Recently my colleague, Cameron Tod wrote about the specifics for Drupal Multi-site Infrastructure, if you need more specifics about that configuration.
Bạn thấy bài viết này như thế nào?: 
Average: 5 (1 vote)
Ảnh của Khanh Hoang

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

Bình luận (0)

 

Add Comment

Filtered HTML

  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Các thẻ HTML được chấp nhận: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Tự động ngắt dòng và đoạn văn.

Plain text

  • No HTML tags allowed.
  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Tự động ngắt dòng và đoạn văn.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
VFS-410 và VFS-510

Nhiên cứu, sản xuất vắcxin phòng, chống COVID-19 đã có máy thở VFS-410 và VFS-510

Sáng 29-4, Phó thủ tướng Vũ Đức Đam đã chủ trì cuộc họp cùng lãnh đạo một số bộ ngành và các đơn vị nghiên cứu về vấn đề tổ chức nghiên cứu, sản xuất vắcxin phục vụ phòng chống dịch COVID-19.

Công cụ soát lỗi trên máy Mac

Công cụ soát lỗi trên máy Mac

Bất kể hệ điều hành Mac OS X trên máy tính của bạn có đang như thế nào, chỉ cần phần cứng của nó trục trặc, bạn sẽ ngay lập tức được chứng kiến vô số các biểu hiện chẳng tốt đẹp gì.

Phần 1: Giới thiệu Composer in contrib

Phần 1: Giới thiệu Composer in contrib

 Add a composer.json file to your Drupal 8 module. The example below gives everything you need.

Công ty diệt chuột T&C

 

Diet con trung