Latest Posts
Thursday, September 30, 2021
Here we created an object called "person" with three properties we are going to use the for/in loop to display the property names as well as the values of those properties
var person = new Object();
person.name = "Tech Junkie";
person.occupation = "Blogger";
person.location = "Mars";
for(var p in person)
console.log(p + ": " + person[p]);
Wednesday, September 29, 2021
In the previous post we went over how to create a Classic Load Balancer, in this post we are going to create one of types of load balancer AWS offers. We are going to create a Network Load Balancer, this balancer is for websites that require high performance and low latency websites, think of streaming data. If your website needs real time streaming data, this is probably the load balancer for you. It supports layer 4 protocols such as UDP, TLS and TCP protocols. If you need a static IP or Elastic IP assigned to your load balancer this is your only choice because the other two load balancer does not give you the option to assign Elastic IPs.
Before we create the load balancer we need to create more than one instances with a web server because we need to test that the load balancer is able to switch.
1. Create two instances with the user data to create Apache Web Servers with these commands in the User Data for instance, if you need the full instruction on how to create instances with User Data you can read this post
Tuesday, September 28, 2021
Here are the steps to setup your user name and editor for git:
1. First let's set our user name, with the command git config --global user.name "Your name goes here"
Friday, September 24, 2021
Thursday, September 23, 2021
For example something like this sudo yum update unlike the su command which prompts you for the root password. The sudo command prompts you for the password of the logged in user.
In order for the sudo to work we have to configure the /etc/sudoers file. There is a special command for editing the sudoers file and it's the visudo command. This command should be used at all times when editing the sudoers file instead of a text editor.
Wednesday, September 22, 2021
If your website starts to become popular, especially if it's not static you might noticed that the performance is starting to degrade. The most logical step is to scale your architecture with a load balancer. AWS offers three types of load balancers, there are:
- Application Load Balancer
- Protocols (HTTP, HTTPS)
- Specializes in web applications, deals with traffic at the request level (layer 7)
- Supports query strings, path routing, parameter routing, IP routing
- Supports IP addresses, Lamda Functions (serverless, microservices), and containers
- Network Load Balancer
- Protocols(TCP, TLS, UDP, TCP_UDP) - Layer 4
- When high performance and low latency is required
- TLS offloading
- Elastic IPs can be assigned
- Classic Load Balancer
- Protocols (TCP, SSL, HTTP, HTTPS) - Layer 4, 7
- Old generation, not recommended unless you are running EC2-Classic instance
Tuesday, September 21, 2021
Here are the steps to setup WildFly on your machine:
- Go the WildFly website and download the latest version, https://wildfly.org/downloads/
Monday, September 20, 2021
In the last post we created a new partition for a new disk that we've just added, in this post we are going to mount the partition and create a filesystem for the partition so that we can use it. First lets check to see that we have a new partition by running the fdisk -l command
As you can see a new partition called /dev/sdb1 has been created with 8 GB of disk space. Now we all good to go.
Here are the steps to mount and create a file system in Linux:
1. First we need to create a filesystem so that the Linux system can read and write to it. Linux uses the xfs filesystem so that's what we are going to use. To do that we have to run the mkfs command. To make an xfs filesystem you simply type mkfs.xfs /dev/sdb1
2. Now that we have a filesystem that Linux could understand, it is time to mount the partition so that we could use in our server. It's a two step process to accomplish that, first you have to create a directory, type mkdir /data to create /data directory. Then you are going to mount the partition to that directory with this command mount /dev/sdb1 /data now if you run the command df -h you will see the partition has been mounted to the /data director
3. We still have one more step before we are finished. Everything will work like it should, but once you reboot the settings will not persist in it's current state. To make the settings persist we have to edit the fstab file. So type the command vi /etc/fstab make sure you have your system backed up and you can revert back because if you messed up you will not be able to log in. When you are in the fstab file type in the following line at the end of the file
/dev/sdb1 /data xfs defaults 0 0








