[StarCluster] Run script automatic after the cluster is up
Shlomit Afgin
shlomit.afgin at weizmann.ac.il
Mon Jul 18 09:35:47 EDT 2016
Hi,
The AMI of the cluster contain logstash configuration.
The logstash configuration file contain something like:
input {
file {
path => "/opt/sge6/default/common/accounting" # path of the log file
type => "masterX" # tag name
…
In order to identify the specific cluster on the logstash server, I need to have unique type for each cluster. (masterX in the example above )
I thought to run a script after the cluster is up, that change the ‘masterX’ with master-id or cluster name and then restart the logstash agent
1. How can I run script automatic after the cluster is up?
2. How can I know the master id, within the master command line, in order to insert it in the type line?
Thanks,
Shlomit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/starcluster/attachments/20160718/1884e92d/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4223 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/starcluster/attachments/20160718/1884e92d/attachment.bin
More information about the StarCluster
mailing list