Due to the search base that is getting bigger everyday, we need a way to guide people to different load balancers.

This patch is doing exactly that

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Nick_vh’s picture

FileSize
1.89 KB
pwolanin’s picture

Status: Active » Needs work

maybe should have a different variable name:

+    'url' => $search_base_url . variable_get('acquia_search_url', '/solr/'. $identifier),

this is now the path not the URL?

Also - is this going to dynamically check that the server is right if the heartbeat data changes? It's not clear from the context in the patch.

Nick_vh’s picture

FileSize
2.61 KB

Clarified the use of the variables and added an update function.

This does dynamically check and update the info on every heartbeat

/**
 * Implementation of hook_acquia_subscription_status().
 */
function acquia_search_acquia_subscription_status($active) {
  if ($active) {
    acquia_search_enable_acquia_solr_environment();
  }
  else {
    acquia_search_disable();
  }
}
Nick_vh’s picture

Status: Needs work » Needs review
FileSize
2.77 KB

forgot to remove the correct variable.

Nick_vh’s picture

FileSize
2.74 KB

Fixing the newline error

Nick_vh’s picture

Status: Needs review » Fixed
pwolanin’s picture

Status: Fixed » Active

I think the code here could be a little better - and also prepare us for better hosting integration.

pwolanin’s picture

Status: Active » Needs review
FileSize
1.53 KB

This will let us also use the $conf['acquia_search_host'] currently populated in Acquia Cloud servers.

pwolanin’s picture

FileSize
1.87 KB

ok, that didn't quite work as intended now, since the host in the RPC overwrites the 'internal.' host name.

Here's a patch that seems to be working for DevCloud.

pwolanin’s picture

Status: Needs review » Fixed

committed - needs to be ported.

pwolanin’s picture

committed some extra code comments too per Nick.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

pwolanin’s picture

Status: Needs work » Active

Given the certificate issues, we may want to use 'internal-' rather than 'internal.'

Note that with our current setup, we won't have peer certs for all possible host names - should we always fall back to search.acquia.com and assume the same CA will be used for all?

pwolanin’s picture

Status: Closed (fixed) » Needs work
FileSize
1.73 KB

leaving as "needs work" so we can consider the cert question

pwolanin’s picture

Status: Active » Needs work
FileSize
1.73 KB

Since this is checked infrequently, maybe we should match both . and - for the legacy check?

pwolanin’s picture

Status: Needs work » Needs review
cpliakas’s picture

Yes, I think that is a sane approach. Would love to see some tests for this functionality as well. I am happy to volunteer writing them after the fact so that this code doesn't hold up a release.

pwolanin’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.