File manager - Edit - /home/jardides/www/Cloud/core/doc/admin/operations/considerations_on_monitoring.html
Back
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Considerations on Monitoring — Nextcloud 12 Server Administration Manual 12 documentation</title> <link rel="stylesheet" href="../_static/" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../_static/main.min.css" type="text/css" /> <link rel="stylesheet" href="../_static/styles.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '12', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="../_static/js/jquery-fix.js"></script> <script type="text/javascript" src="../_static/bootstrap-3.1.0/js/bootstrap.min.js"></script> <script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script> <link rel="top" title="Nextcloud 12 Server Administration Manual 12 documentation" href="../contents.html" /> <link rel="up" title="Operations" href="index.html" /> <link rel="next" title="Scaling Across Multiple Machines" href="scaling_multiple_machines.html" /> <link rel="prev" title="Operations" href="index.html" /> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="theme-color" content="#1d2d44"> </head> <body role="document"> <div class="wrap container not-front"> <div class="content row"> <main class="main"> <div class="row page-content-header"> <div class="col-md-5 col-md-offset-7"> <form class="headersearch" style="margin-bottom:-3px;" action="../search.html" method="get"> <input type="text" value="" name="q" id="q" class="form-control" /> <button class="btn btn-default" type="submit" id="searchsubmit">Search</button> </form> </div> </div> <div class="row"> <div class="col-md-3"> <div class="sidebar"> <div class="menu-support-container"> <ul id="menu-support" class="menu"> <ul> <li><a href="../contents.html">Table of Contents</a></li> </ul> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li> <li class="toctree-l1"><a class="reference internal" href="../release_notes.html">Release Notes</a></li> <li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_server/index.html">Server Configuration</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_user/index.html">User Management</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_files/index.html">File Sharing and Management</a></li> <li class="toctree-l1"><a class="reference internal" href="../file_workflows/index.html">File Workflows</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_database/index.html">Database Configuration</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_mimetypes/index.html">Mimetypes Management</a></li> <li class="toctree-l1"><a class="reference internal" href="../maintenance/index.html">Maintenance</a></li> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Operations</a><ul class="current"> <li class="toctree-l2 current"><a class="current reference internal" href="">Considerations on Monitoring</a><ul> <li class="toctree-l3"><a class="reference internal" href="#nextcloud-deployment-architecture">Nextcloud Deployment Architecture</a></li> <li class="toctree-l3"><a class="reference internal" href="#the-important-components-of-nextcloud">The Important Components of Nextcloud</a></li> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="scaling_multiple_machines.html">Scaling Across Multiple Machines</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../issues/index.html">Issues and Troubleshooting</a></li> </ul> </ul> </div> </div> </div> <div class="col-md-9"> <div class="page-content"> <ul class="prevnext-title list-unstyled list-inline"> <li class="prev"> <a href="index.html" title="Previous Chapter: Operations"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« Operations</span> </a> </li> <li class="next"> <a href="scaling_multiple_machines.html" title="Next Chapter: Scaling Across Multiple Machines"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Scaling Acros... »</span> </a> </li> </ul> <div class="section" id="considerations-on-monitoring"> <h1>Considerations on Monitoring<a class="headerlink" href="#considerations-on-monitoring" title="Permalink to this headline">¶</a></h1> <div class="toctree-wrapper compound"> </div> <p>Large scale Nextcloud deployments are typically installed as load balanced n-tier web applications. Successfully managing such an installation requires active monitoring of the application and supporting infrastructure components. The purpose of this section is to outline the components of Nextcloud that need to be monitored, and provide guidance on what to look for in Nextcloud in an enterprise installation.</p> <div class="section" id="nextcloud-deployment-architecture"> <h2>Nextcloud Deployment Architecture<a class="headerlink" href="#nextcloud-deployment-architecture" title="Permalink to this headline">¶</a></h2> <p>Before discussing how to monitor Nextcloud, it is important to understand the architecture of a typical Nextcloud deployment. These monitoring best practices are developed based on the use of load balanced Web servers, a clustered database running a distributed database storage engine, such as MySQL NDB, and a clustered filesystem, such as Red Hat Storage.</p> <p>It is assumed that specific enterprise tools (monitoring, log management, etc) to monitor operations are available, and that Nextcloud is simply a new target for these tools.</p> </div> <div class="section" id="the-important-components-of-nextcloud"> <h2>The Important Components of Nextcloud<a class="headerlink" href="#the-important-components-of-nextcloud" title="Permalink to this headline">¶</a></h2> <p>Nextcloud is a PHP application that depends on a filesystem for file storage, and a database for storing user and file meta data, as well as some application specific information. While the loss of an app server or a node in the database or storage clusters should not bring the system down, knowing that this happened and resolving it is essential to keeping the service running efficiently. Therefore it is important to monitor the Nextcloud servers, the Load Balancer, the Storage Cluster and the Database. This documentation starts with the Nextcloud application and works out from there through the layers of infrastructure.</p> <div class="section" id="status-php"> <h3>Status.php<a class="headerlink" href="#status-php" title="Permalink to this headline">¶</a></h3> <p>Nextcloud provides a very simple mechanism for determining if an application server is up and functioning – call the status.php file on each Nextcloud server. This file can be found in the root Nextcloud directory on the server, which by default is /status.php. If the server is functioning normally, the response looks something like this:</p> <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span><span class="s2">"installed"</span><span class="p">:</span><span class="s2">"true"</span><span class="p">,</span><span class="s2">"version"</span><span class="p">:</span><span class="s2">"6.0.0.16"</span><span class="p">,</span><span class="s2">"versionstring"</span><span class="p">:</span><span class="s2">"6.0.1"</span><span class="p">,</span><span class="s2">"edition"</span><span class="p">:</span><span class="s2">""</span><span class="p">}</span> </pre></div> </div> <p>We recommend monitoring this file on each Nextcloud application server to provide a basic check that the server is operating properly.</p> </div> <div class="section" id="nextcloud-log"> <h3>Nextcloud.log<a class="headerlink" href="#nextcloud-log" title="Permalink to this headline">¶</a></h3> <p>Nextcloud also provides a built in logging function. If the Nextcloud logging application is enabled, this file will track user logins and shared file activity. If these logging applications are not enabled, this log file still tracks basic Nextcloud health. Given the potential for this file to get quite large, the log file should be rotated on a daily basis, and given the importance of the error information in the log file, this should be integrated with an enterprise log manager.</p> <p>Logfile entries that start with the keyword “Error” should be logged and reported to Nextcloud support.</p> <div class="section" id="apache"> <h4>Apache<a class="headerlink" href="#apache" title="Permalink to this headline">¶</a></h4> <p>The apache error and access log should also be monitored. Significant spontaneous changes of the number of requests per second should also be monitored and looked into.</p> </div> <div class="section" id="database-server"> <h4>Database server<a class="headerlink" href="#database-server" title="Permalink to this headline">¶</a></h4> <p>The load and general health of the database server or cluster has to be monitored also. All mysql vendors provide tools to monitor this.</p> </div> </div> <div class="section" id="clustered-filesystem"> <h3>Clustered Filesystem<a class="headerlink" href="#clustered-filesystem" title="Permalink to this headline">¶</a></h3> <p>The available space of the filesystem should be monitored to prevent a full Nextcloud. This functionality is provided by the operating-system and/or the cluster filesystem vendor.</p> </div> <div class="section" id="load-balancer"> <h3>Load Balancer<a class="headerlink" href="#load-balancer" title="Permalink to this headline">¶</a></h3> <p>The load balancer is monitoring the health of the application servers and is distributing the traffic in the optimal way. The application-servers should also be monitored to detect long lasting OS or hardware problems. Monitoring solutions like Nagios provide built in functionality to do this.</p> </div> </div> </div> <ul class="prevnext-title list-unstyled list-inline"> <li class="prev"> <a href="index.html" title="Previous Chapter: Operations"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« Operations</span> </a> </li> <li class="next"> <a href="scaling_multiple_machines.html" title="Next Chapter: Scaling Across Multiple Machines"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Scaling Acros... »</span> </a> </li> </ul> </div> </div> </div> </main> </div> </div> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings