mirror of
https://github.com/friendica/friendica
synced 2024-09-27 13:14:22 +02:00
Minor edits to improve English.
parent
403b779710
commit
a1fef82f49
|
@ -1,11 +1,11 @@
|
||||||
A little guide to increase the performance of a friendica site
|
A little guide to increase the performance of a Friendica site
|
||||||
|
|
||||||
At first
|
At first
|
||||||
========
|
========
|
||||||
|
|
||||||
Feel free to ask the friendica support at
|
Feel free to ask at Friendica support at
|
||||||
<https://helpers.pyxis.uberspace.de/profile/helpers> if you need some
|
<https://helpers.pyxis.uberspace.de/profile/helpers> if you need some
|
||||||
clarification about the following instruction or if you need help in any
|
clarification about the following instructions or if you need help in any
|
||||||
other way.
|
other way.
|
||||||
|
|
||||||
System configuration
|
System configuration
|
||||||
|
@ -16,48 +16,48 @@ Please go to /admin/site/ on your system and change the following values:
|
||||||
* Set "JPEG image quality" to 50.
|
* Set "JPEG image quality" to 50.
|
||||||
|
|
||||||
This value reduces the data that is send from the server to the client.
|
This value reduces the data that is send from the server to the client.
|
||||||
50 is a value that doesn't influences image qualitity too much.
|
50 is a value that doesn't influences image quality too much.
|
||||||
|
|
||||||
* Set "OStatus conversation completion interval" to "never".
|
* Set "OStatus conversation completion interval" to "never".
|
||||||
|
|
||||||
if you are having many OStatus contacts then completing of conversations
|
If you have many OStatus contacts then completing of conversations
|
||||||
can be very time wasting. The downside: You won't see every answer in
|
can be very time wasting. The downside: You won't see every comment in
|
||||||
OStatus conversations.
|
OStatus threads.
|
||||||
|
|
||||||
* Set "Path for lock file" to an empty folder outside your web root.
|
* Set "Path for lock file" to an empty folder outside your web root.
|
||||||
|
|
||||||
Lock files help avoiding the situation that several background processes
|
Lock files help avoid the possibility of several background processes
|
||||||
run at the same time.
|
running at the same time.
|
||||||
|
|
||||||
For example: It can happen the the poller.php is working longer than
|
For example: It can happen that the poller.php takes longer than
|
||||||
expected. When there would be no lock file than maybe several instances
|
expected. When there is no lock file, it is possible for several instances
|
||||||
of poller.php would run at the same time - which would slow down the
|
of poller.php to run at the same time - which would slow down the
|
||||||
system and would affect the maximum numbers of processes and database
|
system and affect the maximum numbers of processes and database
|
||||||
connections.
|
connections.
|
||||||
|
|
||||||
Please define a full file path that is writable by the web server
|
Please define a full file path that is writeable by the web server
|
||||||
process. If your site would be located at "/var/www/sitename/htdocs/"
|
process. If your site is located at "/var/www/sitename/htdocs/"
|
||||||
you maybe could create a folder "/var/www/sitename/temp/".
|
you could maybe create a folder "/var/www/sitename/temp/".
|
||||||
|
|
||||||
* Enable "Use MySQL full text engine"
|
* Enable "Use MySQL full text engine"
|
||||||
|
|
||||||
When using MyISAM (default) this speeds up the search.
|
When using MyISAM (default) this speeds up search.
|
||||||
|
|
||||||
* Set "Path to item cache" to an empty value outside your web root.
|
* Set "Path to item cache" to an empty value outside your web root.
|
||||||
|
|
||||||
Parsed BBCode and some external images will be put there. Parsing BBCode
|
Parsed BBCode and some external images will be put there. Parsing BBCode
|
||||||
is a time wasting process that also uses much CPU speed.
|
is a time wasting process that also makes heave use of the CPU.
|
||||||
|
|
||||||
You can use the same folder like you used for the lock file.
|
You can use the same folder you used for the lock file.
|
||||||
|
|
||||||
Warning!
|
Warning!
|
||||||
--------
|
--------
|
||||||
|
|
||||||
The folder for the item cache is cleaned up regularly. Every file that
|
The folder for item cache is cleaned up regularly. Every file that
|
||||||
exceeds the cache duration is deleted. If you accidentally would point
|
exceeds the cache duration is deleted. If you accidentally point
|
||||||
the cache path to your web root then you would delete your web root!
|
the cache path to your web root then you will delete your web root!
|
||||||
|
|
||||||
So ensure twice that the folder only contains temporary content that can
|
So double check that the folder only contains temporary content that can
|
||||||
be deleted at any time.
|
be deleted at any time.
|
||||||
|
|
||||||
You have been warned.
|
You have been warned.
|
||||||
|
@ -78,7 +78,8 @@ Alternate Pagination
|
||||||
### Description
|
### Description
|
||||||
|
|
||||||
This plugin reduces the database load massively. Downside: You can't see
|
This plugin reduces the database load massively. Downside: You can't see
|
||||||
anymore the number of pages.
|
the total number of pages available at each module, and have this replaced
|
||||||
|
with "older" and "newer" links.
|
||||||
|
|
||||||
### Administration
|
### Administration
|
||||||
|
|
||||||
|
@ -89,14 +90,14 @@ Privacy Image Cache
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
|
|
||||||
This plugin is prefetching external content and stores it into the
|
This plugin pre-fetches external content and stores it in the
|
||||||
cache. Besides speeding up the page rendering it is also good for
|
cache. Besides speeding up the page rendering it is also good for
|
||||||
keeping the privacy of your users, since embedded pictures would be
|
the privacy of your users, since embedded pictures are
|
||||||
loaded from your site and not from a foreign site (that could spy on the
|
loaded from your site and not from a foreign site (that could spy on the
|
||||||
IP addresses).
|
IP addresses).
|
||||||
|
|
||||||
Additionally it helps with content from external sites that are having a
|
Additionally it helps with content from external sites that have
|
||||||
slow performance or that are aren't online all the time.
|
slow performance or aren not online all the time.
|
||||||
|
|
||||||
### Administration
|
### Administration
|
||||||
|
|
||||||
|
@ -124,12 +125,12 @@ every page:
|
||||||
* Others: Everything else :)
|
* Others: Everything else :)
|
||||||
* Total: The sum of all above values
|
* Total: The sum of all above values
|
||||||
|
|
||||||
These values are showing your performance problems.
|
These values show your performance problems.
|
||||||
|
|
||||||
Webserver
|
Webserver
|
||||||
=========
|
=========
|
||||||
|
|
||||||
If you are using apache please enable the following modules.
|
If you are using Apache please enable the following modules.
|
||||||
|
|
||||||
Cache-Control
|
Cache-Control
|
||||||
-------------
|
-------------
|
||||||
|
@ -175,7 +176,7 @@ APC
|
||||||
|
|
||||||
APC is an opcode cache. It speeds up the processing of PHP code.
|
APC is an opcode cache. It speeds up the processing of PHP code.
|
||||||
|
|
||||||
When APC is enabled, friendica uses it to store configuration data
|
When APC is enabled, Friendica uses it to store configuration data
|
||||||
between different requests. This helps speeding up the page creation
|
between different requests. This helps speeding up the page creation
|
||||||
time.
|
time.
|
||||||
|
|
||||||
|
@ -184,7 +185,7 @@ Database
|
||||||
|
|
||||||
There are scripts like tuning-primer.sh <http://www.day32.com/MySQL/>
|
There are scripts like tuning-primer.sh <http://www.day32.com/MySQL/>
|
||||||
and mysqltuner.pl <http://mysqltuner.pl> that analyzes your database
|
and mysqltuner.pl <http://mysqltuner.pl> that analyzes your database
|
||||||
server and that are giving hints on values that could be changed.
|
server and give hints on values that could be changed.
|
||||||
|
|
||||||
Please enable the slow query log. This helps being aware of performance
|
Please enable the slow query log. This helps being aware of performance
|
||||||
problems.
|
problems.
|
||||||
|
|
Loading…
Reference in a new issue