728x90 반응형 SMALL autoscaling1 [GCP] 오토스케일링과 로드밸런싱 :: Auto Scaling & Load Balancing 1. Compute Engine 생성하고. 2. 세팅한 다음. 3. 이미지 만들고. 4. 로드밸런서(부하분산기) 생성하면 오토스케일링까지 적용되요. Compute Engine에 간단한 노드 서버(Node.js)를 실행했어요. npm install 등은 생략할게요. const http = require('http'); const ip = require("ip"); http.createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/plain'); res.end(ip.address()); }).listen(3000); 브라우저에서 접속하면 아래와 같이 떠요. 10.178.0.2 Compute Engine > 디스.. 2022. 8. 17. 이전 1 다음 728x90 반응형 LIST