Using an AWS EC2 as a Cosmos Node
Using an AWS EC2 Instance as a Cosmos Full-Node Things I found helpful… Just to share with the community, I learned the following when attempting to use an AWS EC2 as a Cosmos Full-Node to join the Cosmos Testnet. I hope that this information is helpful to others embarking on the journey. Need more than an AWS EC2 type “t” instance The EC2 instance types that begin with the letter ‘t’ don’t allow for continuous compute as needed to join the network. Using an m5.large seems to suffice. Need a static IP address The EC2 instance will grab a new IP address with every restart – unless you allocate and associate an Elastic IP address with the instance. Elastic IP is AWS’ name for a static IP address. Since peers keep track of your IP address, it needs to remain constant to avoid confusion. Need a bigger disk than 8GB By default, EC2 instances come with an 8 GB disk (aka AWS Elastic Block Storage). This is not enough to store the data for the Cosmos Testnet. It looks like 32 GB should be enough. So you’ll need to both upgrade and expand the disk (following AWS procedures). Need to publish the public IP address (not the private) By default, the EC2 instance is on a…
Excerpt (1197 of 4034 characters). Read the whole post on the forum ↗
Very good writeup for beginners who want to join the testnet! Just a slight comment on opening ports for Cosmos: You don’t need to open port 26657 to the public. If you’re running sentry nodes, this should actually be avoided, because it opens access to the RPC and therefore could leak the IP address of your validator node. Here is a good thread about what ports gaiad is using and if they should be opened or not.
Yep! I’m in the middle of setting up a bank of nodes and this was all spot on. The t2 instance really got me, because gaiad is just a compute hot. Even on a t2.large, there never seemed to be enough computer. Once I switched to the C series, though, everything went smoothly. Great writeup.
I added your suggestions and link to the above. Thanks for clarifying.
I added a paragraph about expanding the 1024 Open Files Limit to 4096.
Very helpful!
Is there is any minimum recommended configuration for running a full node. I can see they mentioned about RAM and Storage but did not about CPU. Are 2 cores are sufficient?