Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable coordinateFair option for recommend by location #1235

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

seokho-son
Copy link
Member

Enable coordinateFair option for recommend by location

예시

{
  "filter": {
    "policy": [
      {
        "condition": [
          {
            "operand": "4",
            "operator": "<="
          }
        ],
        "metric": "cpu"
      }
    ]
  },
  "limit": "5",
  "priority": {
    "policy": [
      {
        "metric": "location",
        "parameter": [
          {
            "key": "coordinateFair",
            "val": [
              "39.1848/128.2488", "34.0599/131.5093", "36.1672/139.7769"
            ]
          }
        ],
        "weight": "0.3"
      }
    ]
  }
}

39.1848 : 128.2488
34.0599 : 131.5093
36.1672 : 139.7769
를 지정하면, 중심 포인트를 찾은 후, 해당 중심 포인트에서 가장 가까운 리전들을 제공

@seokho-son
Copy link
Member Author

/approve

@seokho-son seokho-son merged commit 3817e86 into cloud-barista:main Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant