-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
ddev-drupal9-solr makes ddev start
take longer
#26
Comments
I assume you created this in ddev-contrib but wanted it to be in ddev-drupal9-solr? The reason it takes longer to start up is that DDEV waits for the solr container to be ready to serve; The healthcheck is at https://github.com/ddev/ddev-drupal9-solr/blob/799e69a85726244c60d72f24143c2f10af76383c/docker-compose.solr.yaml#L77-L78 Apache solr is written in java; it's a very heavyweight daemon, and it takes some time for it to come up. You could remove the healthcheck if you wanted, but then if you started using ddev immediately after it said it was ready you might get errors or unpredictable behavior from solr. |
Ah yes, perhaps you can move the issue to ddev-drupal9-solr? Thanks for the explanation. But isn't it interesting that Solr Cloud DDEV integration starts up faster?
Could it be because there is no health check for the Solr Cloud DDEV solution? How can I disable the healthcheck for ddev/ddev-drupal9-solr? PS. Tip to get the Docker and security file placed with one-liners :)
|
As you suggest, I imagine that the Solr Cloud recipe does not have a healthcheck, so DDEV doesn't know that the solr daemon hasn't finished starting up, so you'll see errors if you try to use it too soon. To disable the ddev-drupal9-solr healthcheck you could
services:
solr:
healthcheck:
test: [true] But as explained above, this may or not mess up your use-case. If you don't often use search before the solr daemon is ready, it won't be a problem. Note that you can also just |
ddev start
take longer
Thanks for moving and updating the issue.
That would also explain some odd errors I saw right after starting DDEV, when I was still experimenting with Solr Cloud. Apart from the errors, things seemed all right. Thanks for the tips about skipping health check. I can't make the Docker file solution work, but |
Problem
Normally, a Drupal 10 DDEV project takes 8-10 seconds to start, which is great. But if you install Solr with
ddev get ddev/ddev-drupal9-solr
(https://github.com/ddev/ddev-drupal9-solr) it slows down andddev start
takes about 35 seconds.Here's the output after
export DDEV_DEBUG=true && export DDEV_VERBOSE=true
when starting a plain Drupal 10, and a Drupal 10 with Solr. I removed the first 40 lines, since they're identical:Drupal 10
Drupal 10 with Solr
The text was updated successfully, but these errors were encountered: