Skip to content

Commit

Permalink
imc: db_mode support
Browse files Browse the repository at this point in the history
Support db_mode. if db_mode is 2, synch all operations to DB, otherwise use only memory.
  • Loading branch information
joeygo authored and miconda committed Dec 7, 2022
1 parent 344ef3d commit b94e158
Show file tree
Hide file tree
Showing 6 changed files with 596 additions and 261 deletions.
21 changes: 21 additions & 0 deletions src/modules/imc/doc/imc_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,27 @@
...
modparam("imc", "db_url", "&exampledb;")
...
</programlisting>
</example>
</section>
<section id="imc.p.db_mode">
<title><varname>db_mode</varname>(integer)</title>
<para>
The module supports 2 modes of operation, high speed memory
based storage (mode 0), and database only (mode 2) where all
data is stored in a database, allowing scalability at the
expense of speed. Mode 1 is reserved.
</para>
<para>
<emphasis> Default value is <quote>0</quote>
</emphasis>
</para>
<example>
<title>Set <varname>db_mode</varname> parameter</title>
<programlisting format="linespecific">
...
modparam("imc", "db_mode", 2)
...
</programlisting>
</example>
</section>
Expand Down

0 comments on commit b94e158

Please sign in to comment.