Database performance #996
Replies: 8 comments 11 replies
-
|
Hi there, Good to see you're back at it. This is very odd behavior indeed. In general we dont mess with the database much other than the needed changes for the platform to work (init file, plugins etc). I suggest you revert back your config to its original state and do any optimisations after we've figured out what this delay is. A few things you can try on the top of my head
Let me know how these go and we can take it from there. Best regards, Pantelis |
Beta Was this translation helpful? Give feedback.
-
|
Additionally I can confirm the problem seems to be the initial connection over the network - logging into mysql using
This works - but takes 25 seconds to connect. Once connected I can run sql commands without any notable delay (the database is pretty much empty mind). |
Beta Was this translation helpful? Give feedback.
-
|
Hang on I might have solved it. Just needed a good nights sleep. Looks like you're thoughts on dns were correct. Although I've used IPs not hostnames addinng skip-name-resolve to the 50_server.cnf file appears to have sorted it. Off to test it properly now. |
Beta Was this translation helpful? Give feedback.
-
|
Seems to have fixed the connection delay, but now the frontend won't work - 404 error for any link including the login? |
Beta Was this translation helpful? Give feedback.
-
|
Hope some inspiration comes soon! I think we might be getting close now - I may have completely misunderstood the memcache config. Still no 100% sure mind. I'd assumed this needed to listen on the network when using a separate db server so had it configured on 172.24.0.253. I've just change the etc/memchaced conf on the db server and set it to listen on 127.0.0.1 and 172.24.0.253. I can now run that command locally and from the frontend and get the event name back. Still getting 404 errors though - what do you mean by listen on both internal and 127.0.0.1? |
Beta Was this translation helpful? Give feedback.
-
|
Ok - so I've discovered that when adding 127.0.0.1 back into the memcached conf it is no longer available over the network. nc -zv 172.24.0.253 returns connection refused Taking out 127.0.0.1 netcat will connect. Must be something wrong with the syntax to specificy multiple ips - I've tried a couple of the mechanisms suggested online, but will continue to tinker. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks - yep just sussed that. Most of the docs I found suggested you could use comma or semi colon seperators. Done that as per you suggestion and now working! Thankyou sir, you are a genius! Couple of other things I've noticed you may want to be aware of... There does seem to be a bug somewhere around creating the first user. I've seen a few times now that when trying to login as the first user created in the backend portal the login prompt will throw a server error (this is what we saw the other day - and I've just had it again). Creating a user from the command line does not appear in the database, but having done this deleting the original user and creating users in the portal then works. Might just be something odd I'm doing - but have managed to replicate that on a few occasions. I'm not sure hints are working properly - on all the builds I've got up and running, I've not managed to get hints to send - I can create them, but despite sending them the users never receive. I'm hoping with the new separate db this might work - will let you know. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
|
Great - thanks. On to the VPN server now, but will hopefully be able to have a proper play with it soon. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi again,
I'm still tinkering and trying to get this set up properly.
I'm trying to get the db running on a separate server - which I've done, but performance is awful 15 - 20 seconds for every action on the site.
I've created a separate database server and sat this box on a private network - pretty much as per the suggestions in the docs. I currently have the frontend and backend on one box at the moment. This box has 2 x network cards. One of these is providing a connection to the private network the database is sat on.
I don't think the problem is the network as there are only the two boxes on this private network and ping times are fine.
I've modified db.php and cache.php to point to the new server and configured mysql to allow connections from the frontend box. it works, but wow is it slow. I assume the problem is that I've not got the db properly optimised for network use somewhere. I've done some research and tried tinkering with setting in 50-server.conf but can't seem to get anything to work.
Have you got any pointers in terms of what I might have missed, or what the optimal config settings are?
Thanks
Rich
Beta Was this translation helpful? Give feedback.
All reactions