Giter Site home page Giter Site logo

Comments (2)

seokho-son avatar seokho-son commented on May 16, 2024

@jazmandorf @jihoon-seo
기존에 MCIS 리스트 조회 기능의 경우,
CSP로의 API CALL이 많아질 수 있는 상황과 응답 속도 저하를 고려하여,
MCIS들 및 소속된 VM들의 상태를 조회하지 않고 리턴하고 있었습니다.

이슈 대응 차원에서 아래와 같이 조치하였습니다.
두 가지 방식 중에 필요에 따라 선택하여 사용하시기 바랍니다.

  1. 기존 MCIS List 조회 기능 (상태 정보를 비워서 리턴)
  2. 현재 상태를 포함하는 MCIS List 조회 옵션 추가

[상세 정보]

  • 기존 MCIS List 조회 기능
    • MCIS와 VM의 Status는 "" empty string으로 회신
API CALL: {{tb_ip}}:{{tb_port}}{{tb_prefix}}/ns/{{ns_id}}/mcis
REPONSE:
{
    "mcis": [
        {
            "id": "MCIS-aws-shson",
            "name": "MCIS-aws-shson",
            "status": "",
            "placement_algo": "",
            "description": "Tumblebug Demo",
            "vm": [
                {
                    "id": "vm-aws-shson-01",
                    "name": "vm-aws-shson-01",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "3.90.103.21",
                    "publicDNS": "",
                    "status": ""
                },
                {
                    "id": "vm-aws-shson-02",
                    "name": "vm-aws-shson-02",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "54.175.56.22",
                    "publicDNS": "",
                    "status": ""
                },
                {
                    "id": "vm-aws-shson-03",
                    "name": "vm-aws-shson-03",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "54.144.67.40",
                    "publicDNS": "",
                    "status": ""
                }
            ]
        }
    ]
}
  • 현재 상태를 포함하는 MCIS List 조회 옵션
    • 기존 MCIS 조회 Path에 QueryParam 추가 (?option=status)
    • MCIS와 VM의 Status를 최신 상태 정보로 회신
API CALL: {{tb_ip}}:{{tb_port}}{{tb_prefix}}/ns/{{ns_id}}/mcis?option=status
REPONSE:
{
    "mcis": [
        {
            "id": "MCIS-aws-shson",
            "name": "MCIS-aws-shson",
            "status": "Running",
            "placement_algo": "",
            "description": "Tumblebug Demo",
            "vm": [
                {
                    "id": "vm-aws-shson-01",
                    "name": "vm-aws-shson-01",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "3.90.103.21",
                    "publicDNS": "",
                    "status": "Running"
                },
                {
                    "id": "vm-aws-shson-02",
                    "name": "vm-aws-shson-02",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "54.175.56.22",
                    "publicDNS": "",
                    "status": "Running"
                },
                {
                    "id": "vm-aws-shson-03",
                    "name": "vm-aws-shson-03",
                    "config_name": "aws-us-east-1-config",
                    "region": {
                        "Region": "us-east-1",
                        "Zone": "us-east-1d"
                    },
                    "publicIP": "54.144.67.40",
                    "publicDNS": "",
                    "status": "Running"
                }
            ]
        }
    ]
}

from cb-tumblebug.

jazmandorf avatar jazmandorf commented on May 16, 2024

넵 감사합니다.

from cb-tumblebug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.