This is an automated email from the ASF dual-hosted git repository.

ivandasch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 8fb97ae33d6 IGNITE-21223 Add xml example in WAL Records Compression 
section of Ignite documentation (#11289)
8fb97ae33d6 is described below

commit 8fb97ae33d6defdd7b55a90360537db31b16e544
Author: Andrey N <[email protected]>
AuthorDate: Fri Mar 29 21:45:55 2024 +0300

    IGNITE-21223 Add xml example in WAL Records Compression section of Ignite 
documentation (#11289)
---
 docs/_docs/code-snippets/xml/wal-compress.xml  | 35 ++++++++++++++++++++++++++
 docs/_docs/persistence/native-persistence.adoc |  4 +++
 2 files changed, 39 insertions(+)

diff --git a/docs/_docs/code-snippets/xml/wal-compress.xml 
b/docs/_docs/code-snippets/xml/wal-compress.xml
new file mode 100644
index 00000000000..41215f4e33b
--- /dev/null
+++ b/docs/_docs/code-snippets/xml/wal-compress.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"; 
xmlns:util="http://www.springframework.org/schema/util"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="      
   http://www.springframework.org/schema/beans         
http://www.springframework.org/schema/beans/spring-beans.xsd         
http://www.springframework.org/schema/util         
http://www.springframework.org/schema/util/spring-util.xsd";>
+       <!-- tag::ignite-config[] -->
+       <bean class="org.apache.ignite.configuration.IgniteConfiguration" 
id="ignite.cfg">
+               <property name="dataStorageConfiguration">
+                       <bean 
class="org.apache.ignite.configuration.DataStorageConfiguration">
+                               <!-- WAL page compression parameters -->
+                               <property name="walPageCompression" 
value="LZ4"/>
+                               <property name="walPageCompressionLevel" 
value="8"/>
+                               <property name="defaultDataRegionConfiguration">
+                                       <bean 
class="org.apache.ignite.configuration.DataRegionConfiguration">
+                                               <property 
name="persistenceEnabled" value="true"/>
+                                       </bean>
+                               </property>
+                       </bean>
+               </property>
+       </bean>
+       <!-- end::ignite-config[] -->
+</beans>
diff --git a/docs/_docs/persistence/native-persistence.adoc 
b/docs/_docs/persistence/native-persistence.adoc
index 4d67c2cb4f4..18f8f677cd8 100644
--- a/docs/_docs/persistence/native-persistence.adoc
+++ b/docs/_docs/persistence/native-persistence.adoc
@@ -298,6 +298,10 @@ To enable it, set the compression algorithm and 
compression level in the data st
 [tabs]
 --
 tab:XML[]
+[source, xml]
+----
+include::code-snippets/xml/wal-compress.xml[tags=ignite-config,indent=0]
+----
 
 tab:Java[]
 [source, java]

Reply via email to