H.K

My feedback

  1. 38 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    7 comments  ·  Feature Suggestions » Web / HTTP functions  ·  Flag idea as inappropriate…  ·  Admin →
    H.K supported this idea  · 
  2. 416 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    40 comments  ·  Feature Suggestions » Web  ·  Flag idea as inappropriate…  ·  Admin →
    H.K commented  · 

    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>

    H.K supported this idea  · 
  3. 203 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    6 comments  ·  Feature Suggestions » Databases  ·  Flag idea as inappropriate…  ·  Admin →
    H.K supported this idea  · 

Feedback and Knowledge Base