Edge for Private Cloud v4.18.05
כשמתקינים את Edge בענן הפרטי, מנהל ההתקנה יוצר כברירת מחדל קבוצת ניתוח אחת בשם "axgroup-001". בזמן ההתקנה, אפשר לשנות את שם ברירת המחדל של קבוצת הניתוח על ידי הכללת הנכס AXGROUP
בקובץ התצורה של ההתקנה:
# Specify the analytics group. # AXGROUP=axgroup-001 # Default name is axgroup-001.
מידע נוסף זמין במאמר התקנת רכיבי Edge בצומת.
כדי להוסיף קבוצת ניתוח נתונים חדשה להתקנה:
- יצירה והגדרה של קבוצת ניתוח הנתונים החדשה:
- יצירה של קבוצת Analytics בשם axgroupNew:
curl -u sysAdminEmail:passWord -H "Content-Type: application/json" -X POST 'https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew'
- מוסיפים קבוצת צרכנים לקבוצת ניתוח הנתונים החדשה, שנקראת
consumer-group-new. השמות של קבוצות צרכנים הם ייחודיים בהקשר של כל קבוצה ב-Analytics:
curl -u sysAdminEmail:passWord -X POST -H 'Accept:application/json' -H 'Content-Type:application/json' "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/consumer-groups?name=consumer-group-new"
- מגדירים את סוג הצרכן של קבוצת הניתוח כ-"ax":
curl -u sysAdminEmail:passWord -X POST -H "Content-Type:application/json" "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/properties?propName=consumer-type&propValue=ax"
- מוסיפים את השם של מרכז הנתונים. כברירת מחדל, מתקינים את Edge עם מרכז נתונים בשם 'dc-1'.
עם זאת, אם יש לכם כמה מרכזי נתונים, לכל אחד מהם יש שם ייחודי. השיחה הזו אופציונלית אם יש לך רק מרכז נתונים אחד, ומומלץ אם יש לך כמה מרכזי נתונים:
curl -u sysAdminEmail:passWord -X POST -H "Content-Type:application/json" "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/properties?propName=region&propValue=dc-1"
- יצירה של קבוצת Analytics בשם axgroupNew:
- מוסיפים את מזהי ה-UUID של שרתי Postgres לקבוצת Analytics החדשה. אם
הגדרתם שני שרתי Postgres שיפעלו כצמד ראשי/במצב המתנה, עליכם לציין את שני הסוגים
כרשימה של מזהי UUID המופרדים בפסיקים.
- כדי לקבל את מזהי ה-UUID של שרתי Postgres, מריצים את פקודת ה-cURL הבאה בכל צומת של שרת Postgres:
curl -u sysAdminEmail:passWord https://PG_IP:8084/v1/servers/self
- אם יש לכם רק שרת Postgres אחד, מוסיפים אותו לקבוצת ניתוח הנתונים:
curl -u sysAdminEmail:passWord -H "Content-Type: application/json" -X POST 'https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/servers?uuid=UUID&type=postgres-server&force=true'
אם יש לכם מספר שרתי Postgres שמוגדרים כצמד ראשי/במצב המתנה, מוסיפים אותם על ידי ציון רשימה של מזהי UUID המופרדים בפסיקים:
curl -u sysAdminEmail:passWord -H "Content-Type: application/json" -X POST 'https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/servers?uuid=UUID_Master,UUID_standby&type=postgres-server&force=true'
הפקודה מחזירה את המידע על קבוצת הניתוח, כולל ה-UUID של שרת Postgres בנכס
postgres-server
, בקטעuuids
:{ "name" : "axgroupNew", "properties" : { "region" : "dc-1", "consumer-type" : "ax" }, "scopes" : [ ], "uuids" : { "qpid-server" : [ ], "postgres-server" : [ "2cb7211f-eca3-4eaf-9146-66363684e220" ] }, "consumer-groups" : [ { "name" : "consumer-group-new", "consumers" : [ ], "datastores" : [ ], "properties" : { } } ], "data-processors" : { } }
- מוסיפים את השרת של Postgres לחנות הנתונים של קבוצת הצרכנים. הקריאה הזו נדרשת כדי לנתב הודעות ניתוח נתונים משרתי Qpid לשרתי Postgres:
curl -u sysAdminEmail:passWord -X POST -H 'Accept:application/json' -H 'Content-Type:application/json' "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/consumer-groups/consumer-group-new/datastores?uuid=UUID"
אם מספר שרתי Postgre מוגדרים כצמד ראשי/כפול, מוסיפים אותם על ידי ציון רשימה של מזהי UUID המופרדים בפסיקים:
curl -u sysAdminEmail:passWord -X POST -H 'Accept:application/json' -H 'Content-Type:application/json' "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/consumer-groups/consumer-group-new/datastores?uuid=UUID_Master,UUID_standby"
המזהה הייחודי (UUID) מופיע במאפיין
datastores
שלconsumer-groups
בפלט.
- כדי לקבל את מזהי ה-UUID של שרתי Postgres, מריצים את פקודת ה-cURL הבאה בכל צומת של שרת Postgres:
- מוסיפים את מזהי ה-UUID מכל שרתי ה-Qpid לקבוצת הניתוח החדשה. חובה לבצע את השלב הזה בכל שרתי Qpid.
- כדי לקבל את מזהי ה-UUID של שרתי ה-Qpid, מריצים את פקודת ה-cURL הבאה בכל צומת של שרת Qpid:
curl -u sysAdminEmail:passWord https://QP_IP:8083/v1/servers/self
- מוסיפים את שרת ה-Qpid לקבוצת ניתוח הנתונים:
curl -u sysAdminEmail:passWord -H "Content-Type: application/json" -X POST 'https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/servers?uuid=UUID&type=qpid-server'
- מוסיפים את שרת ה-Qpid לקבוצת הצרכנים:
curl -u sysAdminEmail:passWord -X POST -H 'Accept:application/json' -H 'Content-Type:application/json' "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/consumer-groups/consumer-group-new/consumers?uuid=UUID"
הקריאה הזו מחזירה את הפקודה הבאה, שבה אפשר לראות שה-UUID של שרת ה-Qpid נוסף לנכס
qpid-server
ב-uuids
, ולנכסconsumers
ב-consumer-groups
:{ "name" : "axgroupNew", "properties" : { "region" : "dc-1", "consumer-type" : "ax" }, "scopes" : [ ], "uuids" : { "qpid-server" : [ "fb6455c3-f5ce-433a-b98a-bdd016acd5af" ], "postgres-server" : [ "2cb7211f-eca3-4eaf-9146-66363684e220" ] }, "consumer-groups" : [ { "name" : "consumer-group-new", "consumers" : [ "fb6455c3-f5ce-433a-b98a-bdd016acd5af" ], "datastores" : [ "2cb7211f-eca3-4eaf-9146-66363684e220" ], "properties" : { } } ], "data-processors" : { } }
- כדי לקבל את מזהי ה-UUID של שרתי ה-Qpid, מריצים את פקודת ה-cURL הבאה בכל צומת של שרת Qpid:
- הקצאה של ארגון וסביבה עבור קבוצת ה-AX החדשה:
curl -u sysAdminEmail:passWord -H "Content-Type: application/json" -X POST "https://MS_IP:8080/v1/analytics/groups/ax/axgroupNew/scopes?org=org_name&env=env_name"