Wednesday, February 10, 2021

How to download and install Docker on RHEL

There are times that you might have faced some issue with docker repository addition into yum repositories especially when you are behind proxy. If you are facing facing the same problem then below steps would help you install Docker with ease.


Basically docker installation needs 4 components that is containerd.io , docker ce, docker ce cli and docker ce rootless extras.You need to download all of these files into a location and can use the yum to install all of them, below command will let you do the same. 


Note: The docker files are for RHEL 7, if you are trying for RHEL 8 please modify the URLs accordingly.

#First Create a separate folder to store the rpm files

mkdir docker

#Now change directory to the new folder

cd docker

#Now using wget, download the rpm files 

sudo wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.4.3-3.1.el7.x86_64.rpm

sudo wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-20.10.1-3.el7.x86_64.rpm

sudo wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-cli-20.10.1-3.el7.x86_64.rpm

sudo wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-rootless-extras-20.10.0-3.el7.x86_64.rpm

#Now run the below command, the *.rpm will automatically allign the 4 files as per the need and installs them.

sudo yum install -y *.rpm

#once successfully installed , start your docker service.

sudo systemctl start docker.service 

To enable docker as a startup service run the below command

sudo systemctl enable docker.service

Monday, February 8, 2021

How to download and install Java selenium in Eclipse

 As a basic first setup, make sure that you have the latest Java installed on your computer. To check the java installation simply open your Command prompt window and enter java --version this should give you the output as shown in the below picture.

Java version verification

Now once your Java installation is verified, download the latest Eclipse IDE software from the official website. 


During installation select "Eclipse IDE for Java Developers" and proceed with the installation. The installation would take some time so just chill out for a moment.

Note: Make sure you have the active internet connection the eclipse installer will try to download the OS libraries.


Once installed, create a new project in Eclipse Workspace.


Before proceeding, download the Selenium jar zip files from the official selenium website and extract them.


Now go to Eclipse and start configuring your newly created java project. You can find this option by right-clicking on the project folder  and navigating from Build path to configure build path .



In Libraries, click on Add External Jar files, now select all the selenium jar files which we extracted in the earlier step.


Now you should be able to run your selenium script. Make sure that you also have the browser drivers as well. Happy Coding 😀


Monday, December 14, 2020

AWS S3 performance improvement

AWS S3 is well equipped with tools to increase their performance there by helping you for faster s3 data access. The three basic concepts are
1. The S3 prefix: each prefix is capable of supporting 3500 put, copy, post delete requests and 5500 get/head requests per second. So the more number of prefix the more the number if requests per second. 
2.multipart upload mechanism: This is another great tool which helps the user to reduce the upload time of files ranging from 100 mb to 5gb by breaking down the file into data chunks and then parallely pushes to S3 bucket location. This is really useful with the sceanarios where you have to deal with huge files sizes.
3. S3 byte-range ferches: it is similar to Multipart mechanism but here it helps during downloads of huge sizes. The user can specify the byte size and the file is broken down according and gets downloaded. 

what is S3 prefix and its significance

It is path url that is present in between your bucket name and the final file name.
For example,
Bucketname/path1/folder1/file.png
Here the /path1/folder is called the prefix. 
Prefixes plays a major role in increasing the performance. In general each prefix can support around 3500 request per second for put, post, copyand delete operations and around 5500 requests per second for get headoperations. So if you have data in two prefixes rather that one then you can get twice the requests increasing the performance. So you can achieve 7000 put, post, copy, delete requests per second and 11000 get, head requests per second.
Also, keep in mind that if you are using any encryption then it has its own limit for encryption during upload and decryption hits for download which will impact your overall requests per second. This is region specific and would be 5500,10000 or 35000 depending on the region of s3 bucket