/DS_LoadBalancer

Distributed System Project - Custom LoadBalancer

Primary LanguageJava

๐Ÿ“File List

  1. dsproject_eureka - Registry Server์šฉ ์ฝ”๋“œ
  2. dsproject_server - Load Balancer Server์šฉ ์ฝ”๋“œ
  3. dsproject_service - Service Server์šฉ ์ฝ”๋“œ
  4. testcode.ipynb - Test Code

๐Ÿ“ŒEnvironment

  • JAVA - JDK 17

โœ…๋ฐฉ๋ฒ•

  1. dsproject_server ์™€ dsproject_service ๋‚ด์˜ application.yml ์—์„œREGISTRY_SERVER:3000 ์ฃผ์†Œ๋ฅผ dsproject_eureka ๋ฅผ ์‹คํ–‰ํ•˜๋Š” ์„œ๋ฒ„์˜ ์ฃผ์†Œ๋กœ ๋ณ€๊ฒฝ ํ›„ ์‹คํ–‰
eureka:
	client:
		~~~~~~~~
		service-url:
			defaultZone: http://REGISTRY_SERVER:3000/eureka
		~~~~~~~~
  1. dsproject_eureka โ†’ dsproject_server โ†’ dsproject_service ์ˆœ์œผ๋กœ ์‹คํ–‰์‹œํ‚ต๋‹ˆ๋‹ค.
  2. dsproject_service ๋Š” ๋™์ผํ•œ ์ฝ”๋“œ๋กœ ์—ฌ๋Ÿฌ ์„œ๋ฒ„์—์„œ ์‹คํ–‰์‹œ์ผœ๋„ ๋ฌธ์ œ ์—†์Šต๋‹ˆ๋‹ค. Spring+eureka๋ฅผ ํ†ตํ•ด ์ž๋™ ํƒ์ง€ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.
  3. testcode.ipynb ๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ ์‹คํ–‰ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

  • LoadBalancing Algorithm is NP-hard Problem. It depends on our current situations (Workloads, Processing Powers...)
  • May need to change Threshold, or so.

๐Ÿ“ˆ Result

image