פתרון בעיות בנתב הקצה

Edge for Private Cloud גרסה 4.17.09

ההטמעה של נתב Edge באמצעות נתב 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

אי אפשר להשתמש בערך הזה.

כדי לפתור את השגיאה:

  1. מסירים את הסיומת .bad משמות הקבצים ב תיקייה אחת (/opt/nginx/conf.d) ולכן הם מסתיימים ב-.conf.
  2. מריצים את 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
  3. צריך לערוך את /opt/apigee/customer/application/router.properties כדי להגדיר conf_load_balancing_load.balancing.driver.proxy.busy.buffer.size עד 128 קראט.
  4. הספרייה /opt/nginx/conf.d הוסרה:
    rm -rf /opt/nginx/conf.d
  5. מפעילים מחדש את הנתב:
    /opt/apigee/apigee-service/bin/apigee-service edge-router restart
  6. קובצי תצורה פגומים לא אמורים להופיע יותר ב-/opt/nginx/conf.d .