Skip to content

Commit

Permalink
Deploying to gh-pages from @ 9d8bdf4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
SteKoe committed Nov 15, 2024
1 parent f43705b commit e5c6d8e
Show file tree
Hide file tree
Showing 571 changed files with 44,642 additions and 0 deletions.
211 changes: 211 additions & 0 deletions 3.3.7-SNAPSHOT/_server-clustering.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@

<!DOCTYPE html>
<!--
Generated by Apache Maven Doxia the 2024-11-15
Rendered using Docs Maven Skin 2.3.3 (https://github.com/Bernardo-MG/docs-maven-skin)
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<title>Spring Boot Admin &#x2013; [Untitled]</title>
<link href="./favicon.ico" rel="shortcut icon" type="image/x-icon">

<!-- Metadata -->
<meta name="author" content="codecentric AG">

<!-- Facebook Open Graph -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="Spring Boot Admin &#x2013; [Untitled]">
<meta property="og:title" content="Spring Boot Admin &#x2013; [Untitled]">

<!-- Twitter Card -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Spring Boot Admin &#x2013; [Untitled]">

<!-- CSS -->
<link rel="stylesheet" href="./lib/bootswatch/dist/litera/bootstrap.min.css">
<link rel="stylesheet" href="./lib/font-awesome/css/all.min.css">
<link rel="stylesheet" href="./lib/highlight/styles/default.css">
<!-- Docs Template style -->
<link rel="stylesheet" href="./css/style.min.css">

<!-- Custom style -->
<link rel="stylesheet" href="./css/custom.css">

</head>
<body class="d-flex flex-column">
<header>
<nav id="navbar-main" class="navbar navbar-expand-md border-bottom bg-light" data-bs-theme="light" border-bottom>
<div class="container-fluid">
<a class="navbar-brand" href="./index.html">Spring Boot Admin Docs</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-main-menu" aria-controls="navbar-main" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<small class="navbar-text d-none d-md-block"><span id="navbar-version">3.3.7-SNAPSHOT</span> (<time id="navbar-date">2024-11-15</time>)</small>
<div class="collapse navbar-collapse" id="navbar-main-menu">
<ul class="nav navbar-nav ms-auto">
<li class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" id="Documentation_menu" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Documentation</a>
<ul class="dropdown-menu dropdown-menu-end" role="menu" aria-labelledby="Documentation_menu">
<li><a class="dropdown-item" href="./getting-started.html" title="Getting Started" aria-label="Getting Started">Getting Started</a></li>
<li><a class="dropdown-item" href="./server.html" title="Server" aria-label="Server">Server</a></li>
<li><a class="dropdown-item" href="./client.html" title="Client" aria-label="Client">Client</a></li>
<li><a class="dropdown-item" href="./security.html" title="Security" aria-label="Security">Security</a></li>
<li><a class="dropdown-item" href="./faq.html" title="FAQ" aria-label="FAQ">FAQ</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" id="Server_menu" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Server</a>
<ul class="dropdown-menu dropdown-menu-end" role="menu" aria-labelledby="Server_menu">
<li><a class="dropdown-item" href="./server.html" title="Usage" aria-label="Usage">Usage</a></li>
<li><a class="dropdown-item" href="./server-notifications.html" title="Notifications" aria-label="Notifications">Notifications</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" id="Client_menu" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Client</a>
<ul class="dropdown-menu dropdown-menu-end" role="menu" aria-labelledby="Client_menu">
<li><a class="dropdown-item" href="./client.html" title="Usage" aria-label="Usage">Usage</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" id="Customize_menu" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Customize</a>
<ul class="dropdown-menu dropdown-menu-end" role="menu" aria-labelledby="Customize_menu">
<li><a class="dropdown-item" href="./customize_notifiers.html" title="Notifiers" aria-label="Notifiers">Notifiers</a></li>
<li><a class="dropdown-item" href="./customize_http-headers.html" title="HTTP Headers" aria-label="HTTP Headers">HTTP Headers</a></li>
<li><a class="dropdown-item" href="./customize_interceptors.html" title="Interceptors" aria-label="Interceptors">Interceptors</a></li>
<li><a class="dropdown-item" href="./customize_ui.html" title="UI" aria-label="UI">UI</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="flex-grow-1">
<section id="main-section" class="container">
<div class="sect1">
<h2 id="clustering-support">Clustering</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Spring Boot Admin Server supports cluster replication via Hazelcast. It is automatically enabled when a <code>HazelcastConfig</code>- or <code>HazelcastInstance</code>-Bean is present. You can also configure the Hazelcast instance to be persistent, to keep the status over restarts. Also have a look at the <a href="http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-hazelcast/">Spring Boot support for Hazelcast</a>.</p>
</div>
<div class="olist arabic">
<ol class="arabic">
<li><p>Add Hazelcast to your dependencies:</p>
<div class="listingblock">
<div class="title">
pom.xml
</div>
<div class="content">
<pre class="CodeRay highlight border shadow rounded"><code data-lang="xml"><span class="tag">&lt;dependency&gt;</span>
<span class="tag">&lt;groupId&gt;</span>com.hazelcast<span class="tag">&lt;/groupId&gt;</span>
<span class="tag">&lt;artifactId&gt;</span>hazelcast<span class="tag">&lt;/artifactId&gt;</span>
<span class="tag">&lt;/dependency&gt;</span></code></pre>
</div>
</div></li>
<li><p>Instantiate a HazelcastConfig:</p>
<div class="listingblock">
<div class="content">
<pre class="CodeRay highlight border shadow rounded"><code data-lang="java"><span class="annotation">@Bean</span>
<span class="directive">public</span> Config hazelcastConfig() {
<span class="comment">// This map is used to store the events.</span>
<span class="comment">// It should be configured to reliably hold all the data,</span>
<span class="comment">// Spring Boot Admin will compact the events, if there are too many</span>
MapConfig eventStoreMap = <span class="keyword">new</span> MapConfig(DEFAULT_NAME_EVENT_STORE_MAP).setInMemoryFormat(InMemoryFormat.OBJECT)
.setBackupCount(<span class="integer">1</span>)
.setMergePolicyConfig(<span class="keyword">new</span> MergePolicyConfig(PutIfAbsentMergePolicy.class.getName(), <span class="integer">100</span>));

<span class="comment">// This map is used to deduplicate the notifications.</span>
<span class="comment">// If data in this map gets lost it should not be a big issue as it will atmost</span>
<span class="comment">// lead to</span>
<span class="comment">// the same notification to be sent by multiple instances</span>
MapConfig sentNotificationsMap = <span class="keyword">new</span> MapConfig(DEFAULT_NAME_SENT_NOTIFICATIONS_MAP)
.setInMemoryFormat(InMemoryFormat.OBJECT)
.setBackupCount(<span class="integer">1</span>)
.setEvictionConfig(
<span class="keyword">new</span> EvictionConfig().setEvictionPolicy(EvictionPolicy.LRU).setMaxSizePolicy(MaxSizePolicy.PER_NODE))
.setMergePolicyConfig(<span class="keyword">new</span> MergePolicyConfig(PutIfAbsentMergePolicy.class.getName(), <span class="integer">100</span>));

Config config = <span class="keyword">new</span> Config();
config.addMapConfig(eventStoreMap);
config.addMapConfig(sentNotificationsMap);
config.setProperty(<span class="string"><span class="delimiter">"</span><span class="content">hazelcast.jmx</span><span class="delimiter">"</span></span>, <span class="string"><span class="delimiter">"</span><span class="content">true</span><span class="delimiter">"</span></span>);

<span class="comment">// WARNING: This setups a local cluster, you change it to fit your needs.</span>
config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(<span class="predefined-constant">false</span>);
TcpIpConfig tcpIpConfig = config.getNetworkConfig().getJoin().getTcpIpConfig();
tcpIpConfig.setEnabled(<span class="predefined-constant">true</span>);
tcpIpConfig.setMembers(singletonList(<span class="string"><span class="delimiter">"</span><span class="content">127.0.0.1</span><span class="delimiter">"</span></span>));
<span class="keyword">return</span> config;
}</code></pre>
</div>
</div></li>
</ol>
</div>
<table class="tableblock frame-all grid-all stretch table table-striped table-bordered">
<caption class="title">
Table 1. Hazelcast configuration options
</caption>
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 33.3333%;">
<col style="width: 33.3334%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">Property name</th>
<th class="tableblock halign-left valign-top">Description</th>
<th class="tableblock halign-left valign-top">Default value</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">spring.boot.admin.hazelcast.enabled</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Enables the Hazelcast support</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>true</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">spring.boot.admin.hazelcast.event-store</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Name of the Hazelcast-map to store the events</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>"spring-boot-admin-event-store"</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">spring.boot.admin.hazelcast.sent-notifications</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Name of the Hazelcast-map used to deduplicate the notifications.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>"spring-boot-admin-sent-notifications"</code></p></td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
</main>
<footer class="footer pt-2 border-top bg-light" data-bs-theme="light">
<div id="footer-nav" class="container">
<div id="navbar-footer" class="row">
<div class="col">
<dl class="text-center mb-1">
<dt class="border-bottom">Imprint</dt>
<dd><a href="./imprint.html" title="Impressum" aria-label="Impressum">Impressum</a></dd>
<dd><a href="./privacy.html" title="Datenschutzerklärung" aria-label="Datenschutzerklärung">Datenschutzerklärung</a></dd>
</dl>
</div>
</div>
</div>
<div id="footer-info" class="bg-light ps-2 pb-1 w-100">
<div> <span class="fa-regular fa-copyright"></span>2024 <a href="http://www.codecentric.de">codecentric AG</a> -
<a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>
</div>
<div>Rendered using <a href="https://github.com/Bernardo-MG/docs-maven-skin">Docs Maven Skin</a> 2.3.3</div>
</div>
</footer>
<script src="./lib/popperjs/core/dist/umd/popper.min.js"></script>
<script src="./lib/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="./lib/highlight/highlight.min.js"></script>
<script src="./js/initializeHighlight.js"></script>
</body>
</html>
Loading

0 comments on commit e5c6d8e

Please sign in to comment.