Edge for Private Cloud v. 4.17.01
Edge Router को Nginx राऊटर का इस्तेमाल करके लागू किया जाता है. Edge को अपग्रेड करने की प्रोसेस के दौरान या राऊटर के कॉन्फ़िगरेशन में बदलाव करते समय, आपको Nginx कॉन्फ़िगरेशन से जुड़ी गड़बड़ियां दिख सकती हैं. जब ये गड़बड़ियां होती हैं, तो Edge उन Nginx कॉन्फ़िगरेशन फ़ाइलों को /opt/nginx/conf.d में लिखता है जिनकी वजह से समस्या हुई. इसके बाद, गड़बड़ी की वजह का पता लगाने के लिए, Nginx configtest टूल का इस्तेमाल किया जा सकता है.
उदाहरण के लिए, /opt/nginx/conf.d की जांच करने पर, आपको ये फ़ाइलें दिखती हैं:
-rw-r--r-- 1 apigee apigee 522 Jul 20 08:41 0-default.conf.bad -rw-r--r-- 1 apigee apigee 577 Jul 20 08:42 0-fallback.conf -rw-r--r-- 1 apigee apigee 1062 Jul 20 08:18 0-map.conf -rw-r--r-- 1 apigee apigee 1887 Jul 20 08:42 custorg_test_default.conf.bad
ध्यान दें कि कई फ़ाइलों के सफ़िक्स में .bad है.
आम तौर पर, ये गड़बड़ियां तब होती हैं, जब आपने /opt/apigee/customer/application/router.properties फ़ाइल में गलत बदलाव किए हों या किसी वर्चुअल होस्ट में गलत बदलाव किए हों. उदाहरण के लिए, आपने ये जोड़े हैं:
conf_load_balancing_load.balancing.driver.proxy.busy.buffer.size=32k
इस वैल्यू की अनुमति नहीं है.
गड़बड़ी को ठीक करने के लिए:
- /opt/nginx/conf.d फ़ोल्डर में मौजूद फ़ाइलों के नामों से .bad सफ़िक्स हटाएं, ताकि वे .conf पर खत्म हों.
- Nginx configtest टूल चलाएं, ताकि गड़बड़ी की वजह देखी जा सके:
> /opt/nginx/scripts/apigee-nginx configtest
आपको इस तरह का आउटपुट दिखेगा:
nginx: [emerg] "proxy_busy_buffers_size" must be equal to or greater than the maximum of the value of "proxy_buffer_size" and one of the "proxy_buffers" in /opt/nginx/conf/nginx.conf:47 - conf_load_balancing_load.balancing.driver.proxy.busy.buffer.size को 128k पर सेट करने के लिए, /opt/apigee/customer/application/router.properties में बदलाव करें.
- /opt/nginx/conf.d फ़ोल्डर को हटाया गया:
> rm -rf /opt/nginx/conf.d - राऊटर को रीस्टार्ट करें:
> /opt/apigee/apigee-service/bin/apigee-servce edge-router restart - अब आपको /opt/nginx/conf.d फ़ोल्डर में खराब कॉन्फ़िगरेशन फ़ाइलें नहीं दिखेंगी.