Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Support for High Availability - #18

Merged
mdspielman merged 7 commits into
SolaceSamples:masterfrom
SolaceDev:md-ha-support
Apr 7, 2017
Merged

mdspielman merged 7 commits into
SolaceSamples:masterfrom
SolaceDev:md-ha-support

Conversation

@damaru-inc

Copy link
Copy Markdown
Contributor

No description provided.

@mdspielman mdspielman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see code review. Several changes suggested.

Comment thread docs/_includes/intro.html Outdated

<p>Solace Messaging is available in a number of network and deployment environments including Public/Private PaaS, Public/Private IaaS, LAN, WAN, Web, and Wireless ensuring your applications will have Solace Messaging available to them wherever they are deployed.</p>

<p>Solace Messaging supports High Availability configurations, where each message router is assigned backup that takes over in case of failures. Details about how to use this are in the Java Application tutorial.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo. Should be "each message router is assigned a backup

Comment thread docs/_tutorials/java-app.md Outdated
```

To demonstrate the application we will make the application send a message to itself. Then we will read the message back to confirm the successful delivery of the message :
To demonstrate the application we will make the application send a message to itself. Then we will read the message back to confirm the successful delivery of the message:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Odd phrasing. Suggest updating to "To demonstrate Solace messaging, the application will send a message to itself"...

channelProperties.setConnectRetriesPerHost(20);
}

try {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have a formatting issue with tabs and spaces. Can we convert all tabs to spaces.

Comment thread spring-cloud/build.gradle
// maven {
// url "http://apps-jenkins:9090/nexus/content/repositories/snapshots/"
// }
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we clean up the local debug code.

channelProperties.setReconnectRetryWaitInMillis(3000);
channelProperties.setConnectRetriesPerHost(20);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same tabs to spaces issue here.

logger.info("Solace client initializing and using SolaceMessagingInfo: " + solaceMessagingServiceInfo);

String host = solaceMessagingServiceInfo.getSmfHost();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this code and set directly as we're doing for other properties.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do this so that we can search for the comma. See the next comment.


// If using High Availability, the host property will be a comma-separated list of two hosts.
if (host.contains(",")) {
// Recommended values for High Availability automatic reconnects.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a query to the SolaceMessagingServiceInfo to ask if it HA. Users shouldn't have to parse for a ","

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, we'll create a bug to add this feature.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

channelProperties.setReconnectRetries(5);
channelProperties.setReconnectRetryWaitInMillis(3000);
channelProperties.setConnectRetriesPerHost(20);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we push this code into the SolaceMessagingServiceInfo class as a convenience method?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll put that in with the same new bug mentioned above.

@mdspielman
mdspielman merged commit 2910236 into SolaceSamples:master Apr 7, 2017
alyrasmy added a commit to alyrasmy/solace-samples-cloudfoundry-java that referenced this pull request May 23, 2018
mdspielman pushed a commit that referenced this pull request May 23, 2018
* Template update for new look and feel. (#5)

* Adopt a tile layout on the main docs pages. Adopt the improved CSS for the tutorial pages.
* Removed extra tutorial image no longer needed
* Added spacing on top of h2 headers. Used intro.html to keep generic intro text. Put tag line in config.yml for site summary

* Fixed hover effect issue (#6)

* changed hover effect on card to move up instead of down to match datago.io (#7)

* Removed round corners (#8)

* Add solace-cloud style header and footer. (#9)

* Add solace-cloud style header and footer.

* More padding for the tutorials

* Padding was missed.

* Adding favicon

* Update the api links for solace cloud. (#12)

* Update the api links for solace cloud.

* Arasmy/datago1066 (#13)

* Change solace cloud links to use the protocol of the site they're on. CSS files that referenced HTTP links. Fixed logo loading over HTTPS. Fixed cards when screen width is less than 993px.

* Added JavaRTO to 'Pick Another API' dropdown on dev.solace and solace cloud

* Fixed all link on config to use the protocol of the site they're on (#14)

* Updates to support adding tutorials directly into the Solace Developer Portal.

* Added header and footer to samples matching to the current one on dev.solace.com. Project now understands the Solace cloud delivery target vs dev portal so that we can deliver different CSS to Solace cloud vs dev portal.

* Added dev-solace css file

* Fixed footer to match dev solace website:

* Removed unused css stylesheet and imported ones that are not served on https. Change css import to use the same protocol of the site. Did some code clean Up. (#16)

* Fixed hover effect of the card overriding hover effect of the header menu on dev solace website (#17)

* Added support of passing in svg required dimensions as tutorial paramter (#18)

* Updated download link on header and footer of samples on dev solace website (#19)

* Rebranding samples for solace cloud website (#20)

* Rebranding samples for solace cloud website

* Rebranding of samples for the dev solace website

* Arasmy/rebranding (#21)

* Rebranding samples for solace cloud website

* Rebranding of samples for the dev solace website

* Made some css improvement to match the solace cloud and dev solace look

* changed hostname back to cloud.solace.com

* fixed hostname of the dev.solace.com

* Arasmy/rebranding (#22)

* Fixed issue with solace template link to github being hardcoded

* Arasmy/rebranding (#23)

* Rebranding samples for solace cloud website

* Rebranding of samples for the dev solace website

* Made some css improvement to match the solace cloud and dev solace look

* changed hostname back to cloud.solace.com

* fixed hostname of the dev.solace.com

* Fixed issue with solace template link to github being hardcoded

* fixed 2 minor bugs on the header and foot of the solace cloud sample (#24)

* Added back the intro to the sample
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants