For the people who think differently Welcome aboard
Author: Osama Mustafa
Osama Mustafa has progressive experience in Oracle Products, community. He recently served as Oracle Database Administrator.
Provide Database Implementation Solutions, High Availability Solution, Infrastructure and Storage Planning, Install, Configure, Implement and manage Oracle E-Business Suite environments. Architect, build and support highly-available Oracle EBS, Database and Fusion Middleware environments including appropriate reporting, Installs, configures, upgrades, tunes, and maintains production, development and test databases.
Recently i was working on automation project for Zabbix, The idea of the project is automate the template change on multiple sites instead of doing this manually, these scripts will do the import for you, and you can import more than one template With format XML into the Zabbix server, the export script will be uploaded soon.
This week, i was working on Automation Project related to Zabbix, which is fix the issues automatically without human interaction, so in case for example; the file system alert reach 85% it will be delete specific folder and send an email to system administrator.
or for example the Cache has been filled and you need to clear, so need for example for someone to access the server and take an action to do this.
I wrote scripts where it’s integrate it with Zabbix and once the threshold will fire, the scripts will run automatically.
This github repository will be updated since the project is not complete yet, still has to do a lot of scripting and integration but i would like to share it with you guys.
In this post i will discuss how to install Boto3 module on Python, I am using Python 3.6, What is Boto3 ?!
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of services like Amazon S3 and Amazon EC2. You can find the latest, most up to date, documentation at our doc site, including a list of services that are supported.
The Module is very big and covering all AWS features, you can intergrate the code and start dealing with S3 for exampel from Download/Upload, Create Bucket , Delete and more; the documentation is here
To install Boto3, you should follow the below steps
yum install python3-pip
Once you run the above command, Pip will be installed on local machine which is a package manager for Python packages, or modules if you like.
pip3 install boto3 --user
I prefer this method more than Option #1 because it’s run by python itself
python3 -m pip install --user boto3
Now you installed Boto3 on your machine, you can start using it by
We all know Amazon AWS, one of the AWS Features called s3, refer to Simple Storage Service which is is a service offered by Amazon Web Services that provides object storage through a web service interface.
Amazon Provide different ways to deal with s3, either by console or by AWSCLI, But In this post i choose to work with s3 in different way, as most of you know, i love python because it’s very simple, not complicated and cross-platform programming language.
You can deal and manage s3 using python by module called boto3, in previous version it was called boto (without 3), you have to install this module to allow python import the library, very simple step
pip3 install boto3
or by the project Interpreter that you are using, in my case i am using PyCharm Community, Nice to deal with, you can install any module by doing the following
File --> Setting --> Project interpreter --> Press on + sign --> and search for the module you want to install
I uploaded the scripts to my Github like usual here, the repository includes two different file
Upload to S3
Download from s3
It’s very simple scripts, but you have to update the following to ensure access to AWS S3
This is the first blog post for the 2020, i Wish everyone will have healthy and wonderful year, may your dreams come true.
I post recently or let’s say Last Year about Full automation project using DevOps tools, and i didn’t to be honest except that much download and questions on that post. you can read it from here.
I decided to create new project but this time to show the power of DevOps and how to use it more in your daily Job, task or even configuration.
The idea of this project like the following:-
You have two code, one Go based application, one Java-based application. Both are providing an HTTP service with the same endpoints.
The Endpoints which is :-
A static site. Should not appear in the final setup as it is but redirect to /hotels.
JSON object containing hotel search results
Exposes the health status of the application
Exposes metrics of the application
We have to setup Load Balancer for this application to be like the following :-
traffic distribution should be as follows: 70% of the requests are going to the application written in Go, 30% of the requests are going to the application written in Java, also i will do it using Docker
I upload the code, and the application ( the two part which is Go application and Java) to my Github HERE, all the configuration has been uploaded to my github,
The Solution files like the below;
docker-compose.yml file in root directory is the main compose file for setting up containers for all services
go-app directory contains binary of Golang Application and Dockerfile of relavant setup
java-app directory contains binary of Java Application and Dockerfile of relavant setup
load-balancer directory contains nginx.conf file which is configuration file of Nginx and have load balancer rules written in it. And containers a Dockerfile for setting up Nginx with defined configurations
The final architecture will be like this instead of the image you saw above
The aim of test is to create a simple HTTP service that stores and returns configurations that satisfy certain conditions. Since I love automating things, the service should be automatically deployed to kubernetes.
You can read more about the project, once you access to my GitHub using the README.MD, I explained the project step by step also the documentation explained every thing.
the code has been uploaded to GitHub, include to this, the documentation uploaded to Slide-share.