You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 8 месеца
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "name": "Increase availability",
  3. "children": [
  4. {
  5. "name": "Simulate failover",
  6. "children": [],
  7. "behaviors": [
  8. {
  9. "name": "breakConnection",
  10. "options": {
  11. "enabled": true
  12. }
  13. }
  14. ],
  15. "criteria": [
  16. {
  17. "name": "contentDeliveryNetwork",
  18. "options": {
  19. "matchOperator": "IS",
  20. "network": "STAGING"
  21. }
  22. },
  23. {
  24. "name": "requestHeader",
  25. "options": {
  26. "headerName": "breakconnection",
  27. "matchCaseSensitiveValue": true,
  28. "matchOperator": "IS_ONE_OF",
  29. "matchWildcardName": false,
  30. "matchWildcardValue": false,
  31. "values": [
  32. "Your-Secret-Here"
  33. ]
  34. }
  35. }
  36. ],
  37. "criteriaMustSatisfy": "all",
  38. "comments": "Simulate an origin connection problem and test the site failover configuration on the CDN staging network."
  39. },
  40. {
  41. "name": "Site failover",
  42. "children": [],
  43. "behaviors": [
  44. {
  45. "name": "failAction",
  46. "options": {
  47. "enabled": false
  48. }
  49. }
  50. ],
  51. "criteria": [
  52. {
  53. "name": "originTimeout",
  54. "options": {
  55. "matchOperator": "ORIGIN_TIMED_OUT"
  56. }
  57. }
  58. ],
  59. "criteriaMustSatisfy": "any",
  60. "comments": "Specify how edge servers respond when the origin is not available."
  61. },
  62. {
  63. "name": "Origin health",
  64. "children": [],
  65. "behaviors": [
  66. {
  67. "name": "healthDetection",
  68. "options": {
  69. "maximumReconnects": 3,
  70. "retryCount": 3,
  71. "retryInterval": "10s"
  72. }
  73. }
  74. ],
  75. "criteria": [],
  76. "criteriaMustSatisfy": "all",
  77. "comments": "Monitor the health of your origin by tracking unsuccessful IP connection attempts."
  78. },
  79. {
  80. "name": "Script management",
  81. "children": [],
  82. "behaviors": [
  83. {
  84. "name": "scriptManagement",
  85. "options": {
  86. "enabled": false
  87. }
  88. }
  89. ],
  90. "criteria": [],
  91. "criteriaMustSatisfy": "all",
  92. "comments": "Enable Script Management to minimize performance and availability impacts from third-party JavaScripts."
  93. }
  94. ],
  95. "behaviors": [],
  96. "criteria": [],
  97. "criteriaMustSatisfy": "all",
  98. "comments": "Control how to respond when your origin or third parties are slow or even down to minimize the negative impact on user experience."
  99. }