Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does multi server deployment work? #1197

Open
Natkeeran opened this issue Jun 27, 2019 · 4 comments
Open

How does multi server deployment work? #1197

Natkeeran opened this issue Jun 27, 2019 · 4 comments
Labels
Type: feature request a proposal for a new feature in the software (should be justified by a ‘use case’)

Comments

@Natkeeran
Copy link
Contributor

Natkeeran commented Jun 27, 2019

Theoretically, it should be possible to specify different machines here, and deploy the claw components to different machines. They should be able to talk to each other!

For instance, it seems that database.yml needs to be in the same machine as webserver.yml.

TASK [geerlingguy.mysql : Ensure MySQL users are present.] *******************************************************************************
Thursday 27 June 2019  11:24:24 -0400 (0:00:00.056)       0:01:04.250 ********* 
fatal: [other_stack]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}
TASK [geerlingguy.solr : Run Solr installation script.] **********************************************************************************
Thursday 27 June 2019  14:11:06 -0400 (0:00:03.716)       0:07:57.930 ********* 
fatal: [web_server]: FAILED! => {"changed": true, "cmd": "/root/solr-7.1.0/bin/install_solr_service.sh /root/solr-7.1.0.tgz -i /opt -d /var/solr -u solr -s solr -p 8983", "delta": "0:00:00.023248", "end": "2019-06-27 18:11:06.716889", "msg": "non-zero return code", "rc": 1, "start": "2019-06-27 18:11:06.693641", "stderr": "", "stderr_lines": [], "stdout": "Solr requires java, please install or set JAVA_HOME properly", "stdout_lines": ["Solr requires java, please install or set JAVA_HOME properly"]}

@Natkeeran
Copy link
Contributor Author

I have the following setup. For some reason, it is trying to install solr in both machines, even though I only added it to be installed on the "other_stack" machine.

# Generated by Vagrant

web_server ansible_ssh_host=machineone ansible_ssh_port=22 ansible_user=root
other_stack ansible_ssh_host=machinetwo ansible_ssh_port=22 ansible_user=root

[karaf]
other_stack

[database]
web_server

[webserver]
web_server

[tomcat]
other_stack

[solr]
other_stack

[crayfish]
other_stack

@dannylamb
Copy link
Contributor

@Natkeeran There's probably going to be all kinds of spots where we run into localhost assumptions here, glad you are attempting this. There may be a lot of config we have to set to use IPs in all the roles, even those we don't maintain.

As for Solr, I have no idea. Somehow that role's getting applied to both hosts.

@jonathangreen
Copy link
Contributor

@Natkeeran yah I always wanted this to be able to work with multiple hosts, but I never got that far during development, so there is probably going to be some work to make sure all the correct things end up in the correct places with the correct IPs.

@seth-shaw-unlv
Copy link
Contributor

Another note on this, tomcat.yml presumes java is already installed. We should probably bring in the same java bits the solr.yml has into the tomcat.yml one.

@kstapelfeldt kstapelfeldt added the Type: feature request a proposal for a new feature in the software (should be justified by a ‘use case’) label Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: feature request a proposal for a new feature in the software (should be justified by a ‘use case’)
Projects
Development

No branches or pull requests

5 participants