Forum slow loading test thread

More
6 days 18 hours ago #10020 by Ian
This is a post without an image - should go fast

Please Log in or Create an account to join the conversation.

More
6 days 18 hours ago #10021 by Ian
Replied by Ian on topic Forum slow loading test thread
this is a post with an attached image - should be OK
Attachments:

Please Log in or Create an account to join the conversation.

More
6 days 18 hours ago #10022 by Ian
Replied by Ian on topic Forum slow loading test thread
OK, getting some progress:

It is a php problem: I just updated the default_socket_timeout to 10s and now the render time is 10 + normal render time.

Please Log in or Create an account to join the conversation.

More
6 days 17 hours ago #10023 by Ian
Replied by Ian on topic Forum slow loading test thread
Confirmed 10 seconds per embedded image

Please Log in or Create an account to join the conversation.

More
6 days 17 hours ago #10024 by Ian
Replied by Ian on topic Forum slow loading test thread
here is a post with an embedded image

Attachments:

Please Log in or Create an account to join the conversation.

More
6 days 14 hours ago - 6 days 14 hours ago #10026 by Ian
Replied by Ian on topic Forum slow loading test thread
OK, figured it out, I think.

The cause was that the Docker container I am using for Joomla apparently was not able to access the images to embed them in the post. It appears it might be trying to access the images via a URL link like " www.tubeclockdb.com/media/kunena/attachments/6170/IMG_3939.jpg ", and then if that fails, it appears to have a backup method, perhaps going to a relative path internally.

The first call to get " www.tubeclockdb.com/media/kunena/attachments/6170/IMG_3939.jpg " was timing out, and the timeout was set to 60 seconds. This meant you had to wait 1 minute for each embedded image.

The set up I have is pretty complex, because this allows me to move the whole website at the drop of a hat. I can just restore the database and move the files over, and we are good to go.

I have a Docker NGINX reverse proxy which does SSL unload and allows me to serve many sites behind a single IP address, and then I have another Docker Joomla Image with an embedded PHP.

The hosting I have has one particularity: You can't call another service inside the same environment using the external IP address. You can't "go out" and "come back in" to the same machine because of routing issues at the edge gateway. I think this is what was causing the failure.

The solution:

In the Docker Compose file, add a reference to this machine itself using an "extra_hosts" entry.

Now the entry looks like this:
joomla:
    image: joomla:3.9.3
    container_name: joomla-server
    restart: "always"
    environment:
      JOOMLA_DB_HOST: joomladb
      JOOMLA_DB_PASSWORD: <none of your business>
    volumes:
      - /data/tubeclockdb:/var/www/html
      - /data/docker/php.ini:/usr/local/etc/php/php.ini
    extra_hosts:
      - "www.tubeclockdb.com:127.0.0.1"

this means that calls to www.tubeclockdb are resolved to localhost and therefore fulfilled immediately, in fact, even faster than standard...

:laugh: :laugh: :laugh:
Last edit: 6 days 14 hours ago by Ian.

Please Log in or Create an account to join the conversation.

Moderators: AccutronTy_EeberfestIan
Time to create page: 0.209 seconds

Search

Tube Suppliers

Go to top
JSN Boot template designed by JoomlaShine.com