TeamITServe

Docker Swarm

Docker Swarm is a container orchestration tool which allows users to manage multiple containers with ease. With its help containers can be easily deployed across various host machines. Docker swarm offers high level of availability for applications. Container Orchestration System If you need to run hundreds of containers a container orchestration system is required. You can easily see that if they are running in a distributed mode, there are multiple features that you will need from a management point of view to make sure that the cluster is up and running without errors. Some of these necessary features include: Setup a cluster with Docker Swarm We will use AWS ec2 for setting up the cluster, so we will launch 3 Ubuntu 18.04 machine from AWS marketplace, 1 will be master node and other 2 will be worker nodes. Each node must also be running Docker. Install Docker Curl -ssl https://get.docker.com | sh This will install the latest version of Docker engine. Create Swarm Manager Run the command below on the manager machine. sudo docker swarm init –advertise-addr 192.168.0.100 The output will be like: Save the token from the above output, this will be used to add the nodes to the cluster. You can see the nodes in the cluster with the command below: Add Nodes to cluster: SSh to you worker nodes and install Docker in them. Then you can join the cluster by entering the token we have saved above with swarm join command. Run this command in both the nodes. Then go back to the master node and run the following command to check how many nodes have joined. Deploy a sample service on cluster. It will create a service for the nginx web server. You can list and check the status of the service. Clustering made easy with Swarm That’s the gist of creating a Docker swarm and creating a service on your new cluster. To learn more about what Docker swarm can do, issue the command Docker swarm — help to see the other commands you can use for Docker swarm. If you need help in configuring this cluster, feel free to email us vic@teamitserve.com or call us at +1 810 214 2572

Docker Swarm Read More »

AWS SNS (Simple Notification Service)

SNS is Simple Notification Service. SNS is an AWS managed web service which is easy to set up, operate, and send a notification from the cloud platform like AWS. It provides developers with the highly scalable, cost-effective, and flexible capability to publish messages from an application and send them to other applications. Feature of SNS: → Messages published to an SNS topics will be delivered to the    subscriber immediately → Inexpensive, pay as-you-go model with no upfront cost. Amazon SNS is a web service that manages sending messages to the subscribing endpoint. In AWS SNS we have two clients: Publisher: Publisher are also known as producers that produce and send the message to the SNS. Publisher is the one who has all privileges which can manage who can send messages on topic. Subscribers: Subscribers are those who receive the messenger notifications from AWS SNS (Webservers, email address, Amazon SQS Queues, AWS Lambda). SNS TOPIC Delivery Formats/Transport protocols (Endpoints) Limitations of AWS SNS: Supported Push Notification Platforms: SNS Topic can have subscribers from any supported push notification platform as well as any other endpoint type such as SMS or Email. When you publish a notification to a topic, SNS will send identical copies of that message to each endpoint subscribed to the topic. Amazon SNS alternatives: Amazon Simple Notification Service Pricing Lambda roles AWS Simple Notification Service SETUP 2. Now we need to create a topic. Basically it is a message channel when you publish a message to a topic it fans-out the message to all subscribed endpoints. 3. After the topic is created it will be shown to you in your next tab and the rest of the basic details you can set as default. 4. Now in the access policy section we need to define who can publish the topic. In my case I am taking default only the topic owner can publish option. 5. Now define who can subscribe to this topic in my case I am taking everyone can subscribe. 6. Now in section delivery retry policy I am using the default options. 7. Now in delivery status logging I am using default options because we don’t want to collect logs and the tags this time we are not giving any tag to this service. Once it is done click create topic. 8. Once it is created you will see a successful message that topic is created successfully now you can create subscription and send messages to them from this topic. 9. Now click on create subscription to create subscription. 10. Now create a subscription select protocol which you want to choose. In my case I am taking email. 11. In the endpoint enter your email on which we want a message. And rest of the options use default. Once it is done click create subscription. 12. Now on your email you will receive a mail for subscription. So click on confirm subscription. 13. Once subscription is confirmed the status will be changed to confirm. 14. Now select subscription and then click on publish message to send messages. 15. Now fill the subject and message body whatever message we want to send to our subscribers. 16. Once all the details fill click on publish message. 17. Once you receive a message published to a topic successfully then we will receive mail in your inbox. So in this way we can send messages to our subscribers. Send text messaging from Simple Notification Service Amazon SNS lets you send SMS text messages to any phone number. 2. In the next tab you will have to choose message type (i.e. Transactional & promotional) I am using promotional messages for now. 3. After this fill the mobile number and message you want to deliver to your customer. 4. Once you click publish message it will send a message on your phone number. If you need help in configuring this cluster, feel free to email us vic@teamitserve.com or call us at +1 810 214 2572

AWS SNS (Simple Notification Service) Read More »

DevOps with TeamITServe

DevOps is an environment wherein developers and operations work together throughout the entire service lifecycle, from designing and development to product support. DevOps has become essential for growth and survival, but protecting the software delivery and deployment pipeline has become more critical than ever before. DevSecOps has become more essential now than ever before. Many corporations suffer due to a time-consuming product development cycle, slow response times, low-profit margins, and low agility in operations. DevOps is an environment where the developer and operations team within an organization work in collaboration with each other for the product development and support cycle. DevOps helps organizations overcome these issues with the use of specific principles and processes. The outcomes achieved with the correct implementation of DevOps are: In this fast moving and competitive world, the newbies have to maintain, cope, and compete with the pace of existing companies and thus, the best possible service to help them is DevOps. It does not just maintain and increase the pace but also provides security and increases the reliability of the developed application and DevOps consulting services DevOps. Thus, attracting more and more customers and helping to establish the start-ups against the multinational existing enterprises. DevOps is the answer to all the complexities of the application development process. Consult the TeamITServe team today for help. If you are looking for experienced DevOps professionals for your organization, contact us at vic@teamitservecom

DevOps with TeamITServe Read More »

Scroll to Top