-
Notifications
You must be signed in to change notification settings - Fork 983
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
Document FreeBSD installation instructions #4488
base: v2.x
Are you sure you want to change the base?
Conversation
Automated message: PR pending admin approval for build testing |
I've also discovered an additional (non-impactful) issue in lib/ProxySQL_Admin.cpp:get_open_fds(), which attempts to open The closest is /proc/curproc, which contains:
It looks like this only impacts statistics; however, it does produce an error every so often:
A quick fix for this could simply be to wrap the call (
|
There also appears to be an issue with the code to enable the RESTapi server in lib/ProxySQL_RESTAPI_Server.cpp.
I was able to track this down to the following line:
I was able to resolve this issue, and get the RESTapi to successfully launch by replacing it with:
After skimming the libhttpserver documents, I'm guessing there is an issue with the default |
The idea for configurable timestamp output in log lines would also be useful for systemd users, in the event they wanted to allow systemd to handle logging on behalf of the application. In that scenario, those users would also see double timestamps. |
Hi @zi0r . Thank you for the PR. About About the RESTAPI , I think we should leave About "support for log file close/reopen" : you can use About "allow printing log lines without the timestamp" : this is a possible feature requests. Even if, interestingly, recently we have seen case in which timestamps of proxysql and system logs were out of sync for several minutes when the system was overloaded, thus relying on proxysql timestamp is better for troubleshooting. |
Thank you all for the quick replies!
fdescfs would be fine. Example output from a login shell:
This sounds perfect.
If you can add a signal hook to allow a SIGUSR1/SIGUSR2/SIGHUP (these are the common ones) to trigger the same functionality, that would be ideal. FreeBSD's newsyslog (their tool for rotating logs) supports sending a signal after log rotation. However, it doesn't natively support MySQL commands. newsyslog effectively runs Perhaps we could look at moving the logic from lib/ProxySQL_Admin.cpp's
From a FreeBSD perspective, if we can add the signal to trigger the log files to close/re-open, then I'm no longer worried about the timestamps. :) This was the interim hack I used in the port:
So, just about anything will be an improvement. :) Here's a link to the port Makefile/patches/etc. I'm happy to incorporate any changes you may be interested in. |
Can one of the admins verify this patch? |
I haven't had a chance to dig into this just yet; however, the sqlite3 dep is failing to build under FreeBSD in v2.6.3--it previously built fine with the 2.6.2 release. Tons (> 10,000 lines) of errors like the following:
|
These errors were introduced by the sqlite3_pass_exts.patch patch. Working on figuring out a proper fix now.
|
This resolves the build. I'm guessing ctype.h gets included somehow under Linux, but not under FreeBSD? Perhaps it would be more appropriate to replace the
|
I've updated the port to 2.6.4. You can view the current Makefile/patches here |
I've created a port/package of proxysql for FreeBSD users. You can view details here:
proxysql port
This will enable them to easily install proxysql via ports or the FreeBSD package management system.
If interested, there are various tweaks to the source that might make future maintenance a little easier: