2021 Upgrade Microservices Tutorial 5 — Running multiple project instances “Simulated Cluster” with IDEA
December 9, 2023
by Richard Maxwell
No Comments
Master “Version H & Alibaba & Link Tracking & Logging & Transaction & Lock”
Simulate the cluster using IDEA
In IDEA, a project can run simultaneously on more than one port number. For example, goods and services can run once on 8803 and can be started again on port 8805, but need to be configured in IDEA. This mode is called IDEA multi-instance running.
IDEA default project runtime singleton, that is, a project can only be started once
Configuring goods and services in IDEA enables multi-instance startup
1594001195183
1594001309866
A different configuration is displayed depending on the version of IDEA
1594001263302
The multi-instance running of the goods and services has been configured through the previous steps
Start goods service at port 8802
1594001378691
1594001399803
Do not disable the commodity service for port 8802. In this case, modify the configuration file of the commodity service and change the port number to 8806
1594001361621
The launch class starts the goods and services again
1594001455682
The above steps enabled two goods and services on different ports to simulate the cluster
1594001785870
If you find this article helpful:
Click “like” to support it, so that more people can see this content.
Share your thoughts with me in the comments section, and record your thought process in the comments section.
If you feel good, you can also follow the personal public account of programming deer to see more articles and explanation videos (thank you for your encouragement and support 🌹🌹🌹)