Started SQL Server Service on cluster remotely but cluster resource is offline - windows

I have an issue while I start SQL Server service remotely using powershell. The Service is hosted on a cluster as a cluster instance. I start the service with service name, not cluster resource name. So, I am able to bring the service online and connect to the instance, however, the cluster administrator shows the resource is offline until I bring it online. Why is this problem. Why is cluster not able to detect service status.

I don't think starting the SQL Server service will bring the SQL Cluster Resource online. Because you are only attempting to start the SQL Svcs Locally. It is as good as starting the services using service control manager.
You should rather be using Start-ClusterResource -Name <SQLClusterResourceName>

Related

Automating Cloudera Management Services

I am using Cloudera Express. The Cloudera Manager version is 5.12.0. I am trying to automate the bring-up of services like hdfs, hbase... I am able to do so by specifying necessary information of each service in host template, and pushing the host template to Cloudera Manager using curl command which uses Cloudera Manager API. Now, I want to automate the bring-up of Cloudera Management Services like host monitor, service monitor, event server, activity monitor and alert publisher. I have tried to do so by adding the corresponding role types and service types of each service in the host template. When I push the host template to Cloudera Manager using curl command, Cloudera Manager shows an error that It could not find service type 'MGMT' with version CDH 5.12.0. As the management services are different from cluster services like hdfs, yarn, hbase..., How should I automate the bring-up of management services? Is their a dedicated API to automate Management Services?
Unfortunately, the host template only applies to clusters not CM. To configure CM look at:
https://cloudera.github.io/cm_api/
https://cloudera.github.io/cm_api/apidocs/v17/index.html (in particular the /cm/service/* APIs)

Registering service on existing node in Consul

There is a Consul cluster in my local environment, and some developers' local machines as well. Each developer has a Tomcat server which runs some web artifacts in Docker container, so I want to register these artifacts as services on Tomcat deploy.
Assuming that we have already registered empty node for each developer's local machine, how can i register/deregister a new service on existing node? Do i need consul agent running on any node?
I know it's possible to add service when registering node, but haven't found any info about how to add services to node dynamically. I'd prefer HTTP API if possible (it's much easier to run on local machines).
Do i need consul agent running on any node?
Yes, even though you can add external services to a remote machine using curl post too, the service discovery is going to benifit you with the agent running on nodes too.
I know it's possible to add service when registering node, but haven't found any info about how to add services to node dynamically.
Registering a service is fairly easy on consul and you can find more details at the following link:
https://www.consul.io/intro/getting-started/services.html
However, if you wish to give better isolation to your developers, I would recommend running the consul agent server/client in docker and let registrator take care of everything.
Registrator from gliderlabs is service registry bridge for Docker. It automatically registers and deregisters services for any Docker container by inspecting containers as they come online.
You can find more details here: https://github.com/gliderlabs/registrator

Cannot start service created with Apache Daemon on Windows Server - Amazon EC2

I'm facing some trouble while trying to start a windows service that I've created with Apache Daemon on an Amazon EC2 Instance (Windows Server 2012 R2). The error I'm getting is "Windows could not start the service_name on local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 1."
I checked some other links and most of the similar problems are related to Apache servers issues, but I already have Apache Tomcat working perfectly here and the problem seems to be related to the windows service only.
Does anyone have any idea?

How does one install etcd in a cluster?

Newbie w/ etcd/zookeeper type services ...
I'm not quite sure how to handle cluster installation for etcd. Should the service be installed on each client or a group of independent servers? I ask because if I'm on a client, how would I query the cluster? Every tutorial I've read shows a curl command running against localhost.
For etcd cluster installation, you can install the service on independent servers and form a cluster. The cluster information can be queried by logging onto one of the machines and running curl or remotely by specifying the IP address of one of the cluster member node.
For more information on how to set it up, follow this article

How to start Windows service of client system from server system?

I have developed a windows service using C#.net. The purpose of this service is block an application. When ever serrvice starts the application will be blocked. Can I operate this service from server to start or stop in client system?
Try 'sc' command from the command prompt. As servers IP and services name use your own.
Starting service:
sc \\192.168.1.100 start MySQL
Stopping service:
sc \\192.168.1.100 start MySQL
More information here.

Resources