H.K
My feedback
2 results found
-
70 votes
This is a valid request, so we’ll look into it. There is no ETA at the moment, but we would really appreciate you voting for this request so that we can accurately assess its popularity relative to other features. Thanks in advance!
— rk
H.K supported this idea · -
605 votes
Since Plesk Onyx you will be able to install memcache as a Docker container and configure http(s) proxy rule for it to map to your web app.
Docker and proxy rules are available in Plesk Onyx Preview already, you can try it here https://talk.plesk.com/threads/plesk-onyx-preview-and-feedback.337172/
SE
An error occurred while saving the comment H.K supported this idea ·
A user should be able to run his own redis/memcached instance under panel hosting settings.
A version of redis/memcached should be supported under plesk updates and upgrades.
Maybe an option to view OPCACHE stats here would also be awesome. Covering all caches in a section under hosting.
A user should be able to run more than 1 redis instance or the host should be able to limit this, as per hosting package.
A user would click the redis/memcached (all under cache header) section under hosting settings.
On a new page, the top menu would read.
New Redis instance, Delete Redis instance
or
New Memcached instance/Delete memcached instance.
The redis/Memcached instances would be shown in a list on this page, if possible some stats. Like Hits. Hit rate. Cache Size etc.
An instance can be started or stopped or cache cleared under this menu.
It should be possible to edit cache ram size and other settings here. Similar to editing an SQL database in Plesk.
Clicking the 'New Redis/memcached instance'. Will Create a box asking for Port, Instance name and other relevant settings.
If possible hits percentage, memory usage, peak memory usage, and key in store could be displayed per Redis instance.
Caching is really missing in Plesk Right now. Loads of people use it, the performance gains are well worth it, and these are all open source apps. Many of us are already running them on plesk servers. Im running both on mine.
Code for redis stats below
<?php
$fp = fsockopen('127.0.0.1', 6379, $errno, $errstr, 30);
$data = array();
if (!$fp) {
die($errstr);
} else {
fwrite($fp, "INFO\r\nQUIT\r\n");
while (!feof($fp)) {
$info = split(':', trim(fgets($fp)));
if (isset($info[1])) $data[$info[0]] = $info[1];
}
fclose($fp);
}
?>
<html>
<head>
<title>Redis statistics</title>
<style type="text/css">
body {
font-family: arial,sans-serif;
color: #111;
}
div.box {
background-color: #DFA462;
width: 200px;
height: 200px;
text-align: center;
margin: 6px;
float: left;
}
div.key {
font-weight: bold;
font-size: 42px;
}
div.detail {
text-align: left;
}
div.detail span {
width: 90px;
padding: 2px;
display: inline-block;
}
div.detail span.title {
text-align: right;
}
</style>
</head>
<body>
<div class='box'>
<div>Percentage hits</div>
<div class='key'><?php echo round($data['keyspace_hits'] / ($data['keyspace_hits'] + $data['keyspace_misses']) * 100)."%";?></div>
<div class='detail'>
<span class='title'>Hits</span>
<span><?php echo $data['keyspace_hits']; ?></span>
</div>
<div class='detail'>
<span class='title'>Misses</span>
<span><?php echo $data['keyspace_misses']; ?></span>
</div>
</div>
<div class='box'>
<div>Memory usage</div>
<div class='key'><?php echo $data['used_memory_human'];?></div>
</div>
<div class='box'>
<div>Peak memory usage</div>
<div class='key'><?php echo $data['used_memory_peak_human'];?></div>
</div>
<div class='box'>
<div>Keys in store</div>
<div class='key'>
<?php
$values = split(',', $data['db0']);
foreach($values as $value) {
$kv = split('=', $value);
$keyData[$kv[0]] = $kv[1];
}
echo $keyData['keys'];
?>
</div>
</div>
</body>
</html>