[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[[["\u003cp\u003eApigee hybrid supports two types of updates: in-place updates and AB-style updates, with in-place updates using Kubernetes rolling updates to minimize downtime.\u003c/p\u003e\n"],["\u003cp\u003eIn-place updates are triggered by modifying settings in the overrides file and applying them to the cluster, such as changing the runtime memory allocation.\u003c/p\u003e\n"],["\u003cp\u003eAB updates, also known as canary updates, are initiated by adding or changing the \u003ccode\u003erevision\u003c/code\u003e tag in the overrides file, regardless of its specific string value.\u003c/p\u003e\n"],["\u003cp\u003eAB updates gradually shift traffic to the new revision, starting with a small percentage and eventually reaching 100%, during which the previous revision will be deleted.\u003c/p\u003e\n"],["\u003cp\u003eThe current AB rollout schedule involves three stages with set percentages of traffic (5%, 20%, and 100%) and specific wait times, which are not configurable in the current release.\u003c/p\u003e\n"]]],[],null,["# Rolling updates\n\n| You are currently viewing version 1.9 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\n\nApigee hybrid supports two kinds of updates. The first is an *in-place update* where\nyou apply a configuration change and hybrid begins a Kubernetes [rolling\nupdate](https://kubernetes.io/docs/tutorials/kubernetes-basics/update/update-intro/). In Kubernetes, rolling updates allow Deployment updates to take place with zero\ndowntime by incrementally updating Pod instances with new ones.\n\n\nApigee hybrid also supports a canary or AB-style update. In an AB update, the new revision\nis deployed; however, at first a small percentage of traffic is directed to it. Over time, this\npercentage increases until all of the traffic goes to the revision.\n\nIn-place updates\n----------------\n\n\nTo trigger an in-place update, simply modify the desired settings in the overrides file and apply\nit to the cluster. For example, suppose you want to change the current `runtime`\nmemory from 1Gi to 5Gi:\n\n\nHere is the initial configuration: \n\n```text\n...\nruntime:\n replicaCountMin: 2\n replicaCountMax: 20\n resources:\n requests:\n cpu: 1000m\n memory: 1Gi\n...\n```\n\n\nIn the new configuration, memory is changed to 5Gi: \n\n```text\n...\nruntime:\n replicaCountMin: 2\n replicaCountMax: 20\n resources:\n requests:\n cpu: 1000m\n memory: 5Gi\n...\n```\n\n\nWhen you apply the change, the updated pods start up and replace the existing pods. Because of\nthe Kubernetes rolling update feature, clients do not experience any downtime.\n\nHow to perform an AB update\n---------------------------\n\n\nTo perform an AB update, use the `revision` tag in your overrides file.\nFor example, suppose you want to change the current `runtime` memory from 1Gi to\n5Gi:\n\n\nIn the current configuration, `revision` is set to `blue`: \n\n```text\n...\nrevision: blue\n...\nruntime:\n replicaCountMin: 2\n replicaCountMax: 20\n resources:\n requests:\n cpu: 1000m\n memory: 1Gi\n...\n```\n\n\nIn the new configuration, if you change `revision` to `green`, you signal\nthat you want to perform a rolling update when\nthe change is applied. The value you set `revision` to does not matter; you can\nuse any string you wish, as long as you change it from the previous value to something else. \n\n```text\n...\nrevision: green\n...\nruntime:\n replicaCountMin: 2\n replicaCountMax: 20\n resources:\n requests:\n cpu: 1000m\n memory: 5Gi\n...\n```\n\n\nWhen you apply the change, a small percentage of traffic to the new revision. Over time,\nmore traffic goes to the new revision until it reaches 100%. At that time, the old revision\nis deleted.\n\n\nTo trigger an AB rollout, either add the `revision` tag if it is not present,\nor change the value of the `revision` tag if it is already present. You are\nnot required to make any other changes to the overrides file to trigger an AB rollout.\n\n\nThe following table the schedule of an AB rollout:\n\n\nIn the current release, the percentages and wait times are not configurable."]]