Skip to content

Commit

Permalink
IGNITE-21223 Add xml example in WAL Records Compression section of Ig…
Browse files Browse the repository at this point in the history
…nite documentation (apache#11289)
  • Loading branch information
lordgarrish authored Mar 29, 2024
1 parent 9285414 commit 8fb97ae
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/_docs/code-snippets/xml/wal-compress.xml
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 4 additions & 0 deletions docs/_docs/persistence/native-persistence.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 8fb97ae

Please sign in to comment.