Chuẩn bị cho các sự kiện có lưu lượng truy cập cao
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài liệu này nhằm giúp bạn quản lý Trình quản lý thẻ phía máy chủ
khi bạn dự kiến mức sử dụng tài nguyên đám mây tăng đột biến trên nền tảng đám mây
Google Cloud. Ví dụ: tài liệu này có thể giúp bạn chuẩn bị cho các sự kiện sắp tới
Các sự kiện giảm giá Thứ Sáu Đen và Thứ Hai điện tử.
Đề xuất
Mặc dù tài nguyên máy chủ của bạn có thể không bị ảnh hưởng nhưng chúng tôi khuyên bạn nên thực hiện
sau đây để đảm bảo rằng bạn không gặp phải thời gian ngừng hoạt động của máy chủ trong
trường hợp nhà cung cấp dịch vụ đám mây ngừng hoạt động hoặc hạn chế về tài nguyên, bất kể ở đâu
bạn triển khai Trình quản lý thẻ phía máy chủ:
- Hãy làm việc với nhà cung cấp dịch vụ đám mây của bạn để đặt trước hạn mức cho sự kiện sắp tới.
- Đối với các giải pháp không máy chủ, chẳng hạn như App Engine của Google Cloud Platform hoặc
Cloud Run, hãy tăng số lượng thực thể tối thiểu lên
mức sử dụng theo dự kiến hoặc theo dự báo trong khoảng thời gian từ đáy đến khi đạt mức cao nhất của sự kiện. Tốt nhất là bạn nên đặt
con số này ở mức cao nhất, nhưng ít nhất, hãy cân nhắc sử dụng đáy của bạn.
- Đối với máy ảo, Kubernetes hoặc các giải pháp khác, hãy tạo yêu cầu đặt trước để đảm bảo
trong bất kỳ nhu cầu nào tăng vọt.
- Đảm bảo bạn đặt giới hạn thực thể tối đa một cách phù hợp. Giới hạn phải là
đủ cao để xử lý cả lưu lượng truy cập dự kiến lẫn ngoài dự kiến.
- Xem lại các hạn mức và giới hạn. Hãy đảm bảo rằng các tài nguyên mà dịch vụ của bạn sử dụng và
dựa vào đó để đặt hạn mức phù hợp. Nếu bạn muốn có hạn mức lớn hơn, hãy
các yêu cầu đó trước sự kiện.
- Hãy nâng cấp phiên bản hình ảnh Docker phía máy chủ lên phiên bản mới nhất trước đây
sự kiện đó để bạn có thể hạn chế việc triển khai và thực thể khởi động lại trong
sự kiện.
Câu hỏi thường gặp
Google bảo vệ tôi như thế nào trong ngày Thứ Sáu Đen và Thứ Hai điện tử?
Bằng cách mở rộng quy mô cho các sự kiện có lưu lượng truy cập cao, bạn đảm bảo trang web của mình có thể xử lý
lưu lượng truy cập. Không có đủ máy chủ, lượt truy cập sẽ bị mất và dữ liệu sẽ không bị mất
có thể truy xuất.
Trình quản lý thẻ của Google đóng băng mọi thay đổi về mã và khởi động lại cơ sở hạ tầng trong
thời gian diễn ra các sự kiện Thứ Sáu Đen và Thứ Hai điện tử.
Google Cloud tạm dừng việc cập nhật cơ sở hạ tầng, quá trình nâng cấp tự động,
triển khai và chấm dứt vòng đời trong thời gian diễn ra Thứ Sáu Đen và
Sự kiện Thứ Hai điện tử. Những thực thể đang chạy sẽ tiếp tục chạy
đến vòng đời trừ phi chúng gặp sự cố hoặc bị bạn làm gián đoạn.
Tôi nên chuẩn bị cho những sự kiện nào?
- Đối với Thứ Sáu Đen và Thứ Hai điện tử, bạn nên chuẩn bị trước một tuần
trước Lễ Tạ ơn và hai ngày sau Thứ Hai điện tử.
- Đối với các sự kiện cuối năm, bạn nên chuẩn bị trước lễ Giáng sinh một tuần
và một ngày sau Năm mới.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-07-25 UTC."],[[["\u003cp\u003eThis guide helps you prepare your Server-side Tag Manager deployment for high-traffic events like Black Friday and Cyber Monday to avoid downtime.\u003c/p\u003e\n"],["\u003cp\u003eReserve cloud resources with your provider by increasing minimum instances for serverless solutions or creating reservations for VMs and Kubernetes.\u003c/p\u003e\n"],["\u003cp\u003eSet appropriate max instance limits and review quotas to handle expected and unexpected traffic, requesting quota increases beforehand if needed.\u003c/p\u003e\n"],["\u003cp\u003eUpgrade to the latest Server-side Tag Manager Docker image before the event to minimize deployments and restarts during the peak period.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Tag Manager and Google Cloud implement safeguards during peak shopping events, such as freezing code changes and pausing infrastructure updates to ensure stability.\u003c/p\u003e\n"]]],["To prepare for traffic spikes, like Black Friday and Cyber Monday, reserve cloud capacity with your provider, setting minimum instances for serverless solutions to match forecasted usage. Ensure maximum instance limits are high enough, and review/increase resource quotas. Upgrade to the latest Server-side Tag Manager Docker image version beforehand. Google freezes code changes and infrastructure restarts during these key events, while also pausing infrastructure updates, ensuring running instances remain operational. Preparation is recommended for at least a week before and a couple days after major events.\n"],null,["# Prepare for high traffic events\n\nThis document is intended to help you manage your [Server-side Tag Manager](https://developers.google.com/tag-platform/tag-manager/server-side)\ndeployment when you're expecting spikes in cloud resource usage across cloud\nproviders. For example, this document can help you prepare for upcoming\nBlack Friday and Cyber Monday sales events.\n\nRecommendations\n---------------\n\nWhile your server resources may not be affected, we recommend taking the\nfollowing actions to ensure that you don't experience server downtime in the\nevent of cloud provider outages or resource constraints, regardless of where\nyou deploy Server-side Tag Manager:\n\n- Work with your cloud provider to reserve capacity for the upcoming event.\n - For serverless solutions, such as Google Cloud Platform's App Engine or Cloud Run, increase your minimum number of instances to your expected or forecasted usage between the event trough and peak. Ideally, set this number at the peak, but at a minimum, consider using your trough.\n - For VMs, Kubernetes, or other solutions, create reservations to ensure resources during any burst in demand.\n- Ensure your max instance limits are set appropriately. The limit should be high enough to handle both expected and unexpected traffic.\n- Review quotas and limits. Make sure that the resources your service uses and relies on have appropriately set quotas. If you want larger quota limits, make those requests before the event.\n- Upgrade your Server-side [Docker image version](https://developers.google.com/tag-platform/tag-manager/server-side/release-notes) to the latest version before the event so you can limit deployments and instance restarts during the event.\n\nFrequently asked questions\n--------------------------\n\n**How does Google protect me during Black Friday and Cyber Monday?**\n\nBy scaling for high traffic events, you ensure your site can handle increased\ntraffic. Without enough servers, hits will be lost and data won't be\nretrievable.\n\nGoogle Tag Manager freezes all code changes and infrastructure restarts during\nthe duration of Black Friday and Cyber Monday events.\n\nGoogle Cloud pauses infrastructure updates, automated upgrades,\ndeployments, and lifecycle terminations during the duration of Black Friday and\nCyber Monday events. Instances that are running should continue to run\nto their full lifetimes unless they crash or are interrupted by you.\n\n**What events should I prepare for?**\n\n- For Black Friday and Cyber Monday, we recommend preparing for one week before Thanksgiving and two days after Cyber Monday.\n- For end of year events, we recommend preparing for one week before Christmas and one day after New Years."]]