OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Shutting down AWS ec2 when I am using github actions for auto deployment?

  • Thread starter Thread starter Siam Ahnaf
  • Start date Start date
S

Siam Ahnaf

Guest
I successfully build one project. My project contain-

  1. One NextJS Application for main site
  2. One NextJS Application for Admin Dashboard
  3. One NestJS application for APIs(I am using GraphqQL)

My project is not a big project, instead it is a medium size project. My backend has 6-7 Module for managing APIs. For deploying the project in production, I choose AWS EC2.

I take AWS EC2 t2.2xlarge instance type which has 8vCPU and 32GB Memory. On this EC2 Instance, I deploy that two nextjs application and one nestjs application. I also install PostgreSQL for database on EC2. For automatic backing up, I am using cronjob and s3.

I am facing one problem. I am seeing that, AWS EC2 stop working when a github action is triggering. All the live site stop working. I need to reboot aws ec2 manually for coming back them.

I am not understanding, what is the problem.

  1. Is my t2.2xlarge is not enough for my project?
  2. Or any configuration issues?

What instance type should I use?

Note: One my previous project I get same issue on t2.micro(1vCPU and 1GB Memory), and then I update it to t2.xlarge and then it do not face those issues on that project, where I was deployed two nextjs application and one nestjs appication.
<p>I successfully build one project. My project contain-</p>
<ol>
<li>One NextJS Application for main site</li>
<li>One NextJS Application for Admin Dashboard</li>
<li>One NestJS application for APIs(I am using GraphqQL)</li>
</ol>
<p>My project is not a big project, instead it is a medium size project. My backend has 6-7 Module for managing APIs. For deploying the project in production, I choose AWS EC2.</p>
<p>I take AWS EC2 t2.2xlarge instance type which has 8vCPU and 32GB Memory. On this EC2 Instance, I deploy that two nextjs application and one nestjs application. I also install PostgreSQL for database on EC2. For automatic backing up, I am using cronjob and s3.</p>
<p>I am facing one problem. I am seeing that, AWS EC2 stop working when a github action is triggering. All the live site stop working. I need to reboot aws ec2 manually for coming back them.</p>
<p>I am not understanding, what is the problem.</p>
<ol>
<li>Is my t2.2xlarge is not enough for my project?</li>
<li>Or any configuration issues?</li>
</ol>
<p>What instance type should I use?</p>
<p>Note: One my previous project I get same issue on t2.micro(1vCPU and 1GB Memory), and then I update it to t2.xlarge and then it do not face those issues on that project, where I was deployed two nextjs application and one nestjs appication.</p>
Continue reading...
 
Top