Active/active pacemaker? - centos7

Blockquote
"I want to create a HA cluster with two nodes.So,does anyone can give me the configuration of two nodes with pacemaker and corosync?I want to use pacemaker with active/active mode.Thank for watching my question!"
Blockquote

I think you can refer below document in Redhat 7. I think it will be helpful for you.
High-Availability

Related

Google Cloud YAML: How to find the commands or How to create a loadbalancer?

I have a small issue I can't find how to fix.
Usually when you are coding, whether you are coding in python or a language like yaml, There are places you can find the commands or you have somewhere that you can find out what certain commands do.
Right now I want to create a http loadbalancer on the google cloud with deployment manager. Very basic stuff. But I just can't find the right command for the type or action.
Where does one find these things?
I hope you guys can help me. I'm feeling lost and googling doesn't help :D
As per the article you can create an LB using GCP Deployment Manager.

Is it possible to launch GCP marketplace entries using the gcloud CLI?

I've checked beta and alpha commands, and can't find any documentation. I'm assuming the answer is no, but thought someone might know.
Google has well documented on their site how to launch marketplace entries interactively with a browser, but I'm interested in if it's possible to do it non-interactively.
There is no such thing, to make sure you can use
gcloud help -- marketplace
to get a list of all gcloud commands with the expression 'marketplace' including alphas and betas.
As an alternative, you can use Deploment Manager for automation
Straight answer is NO.
However, If you are looking to accomplish installing it from API you may be able to get the details of the image you're interested in provided you know the project.
Check this
You can describe the image to get the details necessary to install it on a compute engine. Ignore, if this is not something you're trying to accomplish.

AWS E2 instances webserver replies AWS

I have an EC2 instance running at AWS with some standard webpages. Since a few days the server replies with "AWS!" instead of delivering the index.page. Checking the source code of this page:
<html><body><script type="text/javascript" src="http://gc.kis.v2.scr.kaspersky-labs.com/XXXXX/main.js" charset="UTF-8"></script>AWS!</body></html>
On this instance Kaspersky is not installed. I didnt found any hints on Google so far - maybe someone has made a similiar experience and give me a hint why my index-page is not shown anymore (the code was not changed). Maybe AWS has undergone a change?
Any hint is very appreciated.
Issue fixed, stdunbar & John pointed into the right direction. DNS entry was wrong.

GCP error for network

I received an error such as this when trying to create a TPU resource. I am new to GCP and could anyone please assist me? I try to find the tutorial too but of no luck. If anyone has any suggestions, please let me know. In the meantime, I would like to solve the below issue:
(gcloud.beta.compute.tpus.create) argument --network: Must be specified.
I am new to this stackoverflow too, please let me know if I asked at the wrong website and I will delete it.
Posting the answer provided by DazWilkin in the comments which might be useful for other community users looking at this thread. When you are using the default VPC network which also called "default", you can use "default" with the "--network" flag while running the below command:
$ gcloud beta compute tpus create
"--network" flag specifies the network that this TPU will be a part of. If you are using any other network, please specify the network name with the "--network" flag.
You can find details of the different flags and its purpose in this document. Google Cloud Console is another option to create TPUs if convenient for you. You can directly go to this link to add TPUs from Cloud Console

What is a good API or way to create VMs programatically?

I'm working on a project where I think of distributing tasks to VMs that are dynamically managed (created, destroyed, paused, run processes from host, etc). I was wondering what would be a good approach or API to accomplish the management of the VMs. Below are some examples of what I'm thinking but I wanted to get some guidance on the best approach.
Vagrant-binding: it looked perfect but it out of date and not supported.
Oracle Tools: the vagrant module looks interesting but there isn't much documentation and I'm a bit confused on how to actually use it.
VirtualBox sdk: I'm a bit confused on the setup of this.
As you can see from the examples I was thinking in Java but I'm open to working on other languages. This project academic in nature and I'm a student so I know that this might not be the most practical thing to do but I wanted to see if it possible and what would be best way to accomplish it.
I have recently created a program to manage the VMs at my work. I used object-pascal (Delphi) to create the GUI and then did all the heavy lifting using vboxmanage commands that are ran as a process through cmd but called from my program. Oracle has a nice list of available commands here
For example
List running Vms
VBoxManage.exe list runningvms
Import a VM
VBoxManage.exe import (VM_To_Import_Location) --vsys 0 --vmname (Name_of_VM) --unit 11 --disk (Where_You_Want_VM_Stored)
Start a VM
VBoxManage.exe startvm (Name_Of_VM) --type headless
Take a Snapshot
VBoxManage.exe snapshot (VM_Name) take (Snapshot_Name) -desc "My Snapshot Description"
Restore a Snapshot
Vboxmanage.exe snapshot (VM_Name) restore (Snapshot_Name)
There are many more for pretty much everything you would want to do with a VM.