프로그래밍/Cloud

구글 파이어베이스 파이어스토어 GCP 리전 정하기

astraljoker 2022. 4. 1. 12:31
728x90
반응형

최근 처음으로 만들고 있는 웹서비스 DB로 파이어스토어를 사용하고 있습니다. 이유는 공짜라서.. 아무튼 파이어스토어는 처음 만들 때 리전을 정해줘야 합니다.

https://www.gcping.com/


누가 아주 친절하게 핑 체크를 할 수 있게 만들어 놨습니다. 브라우저에서 fetch를 해보는 것 같습니다. 몬트리올이 가까워서 가장 빠르게 나오는군요..

 

{



   "asia-east1": "Taiwan",


   "asia-east2": "Hong Kong",


   "asia-northeast1": "Tokyo",


   "asia-northeast2": "Osaka",


   "asia-northeast3": "Seoul",


   "asia-south1": "Mumbai",


   "asia-south2": "Delhi",


   "asia-southeast1": "Singapore",


   "asia-southeast2": "Jakarta",


   "australia-southeast1": "Sydney",


   "australia-southeast2": "Melbourne",


   "europe-central2": "Warsaw",


   "europe-north1": "Finland",


   "europe-west1": "Belgium",


   "europe-west2": "London",


   "europe-west3": "Frankfurt",


   "europe-west4": "Netherlands",


   "europe-west6": "Zurich",


   "northamerica-northeast1": "Montréal",


   "northamerica-northeast2": "Toronto",


   "southamerica-east1": "São Paulo",


   "southamerica-west1": "Santiago",


   "us-central1": "Iowa",


   "us-east1": "South Carolina",


   "us-east4": "North Virginia",


   "us-west1": "Oregon",


   "us-west2": "Los Angeles",


   "us-west3": "Salt Lake City",


   "us-west4": "Las Vegas"


}

 

소스코드에 들어 있었습니다. 리전과 도시 리스트입니다.

 

var AllEndpoints = map[string]Endpoint{



        "global": {


                URL:        "https://global.gcping.com",


                Region:     "global",


                RegionName: "Global External HTTPS Load Balancer",


        },


        "asia-east1": {


                URL:        "https://asia-east1-5tkroniexa-de.a.run.app",


                Region:     "asia-east1",


                RegionName: "Taiwan",


        },


        "asia-east2": {


                URL:        "https://asia-east2-5tkroniexa-df.a.run.app",


                Region:     "asia-east2",


                RegionName: "Hong Kong",


        },


        "asia-northeast1": {


                URL:        "https://asia-northeast1-5tkroniexa-an.a.run.app",


                Region:     "asia-northeast1",


                RegionName: "Tokyo",


        },


        "asia-northeast2": {


                URL:        "https://asia-northeast2-5tkroniexa-dt.a.run.app",


                Region:     "asia-northeast2",


                RegionName: "Osaka",


        },


        "asia-northeast3": {


                URL:        "https://asia-northeast3-5tkroniexa-du.a.run.app",


                Region:     "asia-northeast3",


                RegionName: "Seoul",


        },


        "asia-south1": {


                URL:        "https://asia-south1-5tkroniexa-el.a.run.app",


                Region:     "asia-south1",


                RegionName: "Mumbai",


        },


        "asia-south2": {


                URL:        "https://asia-south2-5tkroniexa-em.a.run.app",


                Region:     "asia-south2",


                RegionName: "Delhi",


        },


        "asia-southeast1": {


                URL:        "https://asia-southeast1-5tkroniexa-as.a.run.app",


                Region:     "asia-southeast1",


                RegionName: "Singapore",


        },


        "asia-southeast2": {


                URL:        "https://asia-southeast2-5tkroniexa-et.a.run.app",


                Region:     "asia-southeast2",


                RegionName: "Jakarta",


        },


        "australia-southeast1": {


                URL:        "https://australia-southeast1-5tkroniexa-ts.a.run.app",


                Region:     "australia-southeast1",


                RegionName: "Sydney",


        },


        "australia-southeast2": {


                URL:        "https://australia-southeast2-5tkroniexa-km.a.run.app",


                Region:     "australia-southeast2",


                RegionName: "Melbourne",


        },


        "europe-central2": {


                URL:        "https://europe-central2-5tkroniexa-lm.a.run.app",


                Region:     "europe-central2",


                RegionName: "Warsaw",


        },


        "europe-north1": {


                URL:        "https://europe-north1-5tkroniexa-lz.a.run.app",


                Region:     "europe-north1",


                RegionName: "Finland",


        },


        "europe-west1": {


                URL:        "https://europe-west1-5tkroniexa-ew.a.run.app",


                Region:     "europe-west1",


                RegionName: "Belgium",


        },


        "europe-west2": {


                URL:        "https://europe-west2-5tkroniexa-nw.a.run.app",


                Region:     "europe-west2",


                RegionName: "London",


        },


        "europe-west3": {


                URL:        "https://europe-west3-5tkroniexa-ey.a.run.app",


                Region:     "europe-west3",


                RegionName: "Frankfurt",


        },


        "europe-west4": {


                URL:        "https://europe-west4-5tkroniexa-ez.a.run.app",


                Region:     "europe-west4",


                RegionName: "Netherlands",


        },


        "europe-west6": {


                URL:        "https://europe-west6-5tkroniexa-oa.a.run.app",


                Region:     "europe-west6",


                RegionName: "Zurich",


        },


        "northamerica-northeast1": {


                URL:        "https://northamerica-northeast1-5tkroniexa-nn.a.run.app",


                Region:     "northamerica-northeast1",


                RegionName: "Montréal",


        },


        "northamerica-northeast2": {


                URL:        "https://northamerica-northeast2-5tkroniexa-pd.a.run.app",


                Region:     "northamerica-northeast2",


                RegionName: "Toronto",


        },


        "southamerica-east1": {


                URL:        "https://southamerica-east1-5tkroniexa-rj.a.run.app",


                Region:     "southamerica-east1",


                RegionName: "São Paulo",


        },


        "southamerica-west1": {


                URL:        "https://southamerica-west1-5tkroniexa-tl.a.run.app",


                Region:     "southamerica-west1",


                RegionName: "Santiago",


        },


        "us-central1": {


                URL:        "https://us-central1-5tkroniexa-uc.a.run.app",


                Region:     "us-central1",


                RegionName: "Iowa",


        },


        "us-east1": {


                URL:        "https://us-east1-5tkroniexa-ue.a.run.app",


                Region:     "us-east1",


                RegionName: "South Carolina",


        },


        "us-east4": {


                URL:        "https://us-east4-5tkroniexa-uk.a.run.app",


                Region:     "us-east4",


                RegionName: "North Virginia",


        },


        "us-west1": {


                URL:        "https://us-west1-5tkroniexa-uw.a.run.app",


                Region:     "us-west1",


                RegionName: "Oregon",


        },


        "us-west2": {


                URL:        "https://us-west2-5tkroniexa-wl.a.run.app",


                Region:     "us-west2",


                RegionName: "Los Angeles",


        },


        "us-west3": {


                URL:        "https://us-west3-5tkroniexa-wm.a.run.app",


                Region:     "us-west3",


                RegionName: "Salt Lake City",


        },


        "us-west4": {


                URL:        "https://us-west4-5tkroniexa-wn.a.run.app",


                Region:     "us-west4",


                RegionName: "Las Vegas",


        },


}


endpoint도 제공하고 있으니 원하면 다른 서버에서 쏴볼 수도 있을 것 같네요.

Cloud Firestore를 사용하기 전에 데이터베이스 위치를 선택해야 합니다. 지연 시간을 줄이고 가용성을 높이려면 데이터를 이용하는 서비스 및 사용자와 가까운 위치에 데이터를 저장하세요. 이 위치 설정이 프로젝트의 기본 Google Cloud Platform(GCP) 리소스 위치입니다.

 

https://jinibh.tistory.com/508

 

구글 클라우드 플랫폼 가상머신 무료로 사용하기 - 무료 리눅스 서버

구글 클라우드 플렛폼 (Google Cloud Platform) 구글에서 개발한 클라우드 서비스입니다. 리눅스 서버나 윈도우 서버를 내가 귀찮게 구축하지 않고 쉽게 만들 수 있습니다. Serverless, Fi.

jinibh.tistory.com

 

728x90
반응형