<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Process instances and checkpoints</title><link>https://community.appian.com/discussions/f/general/19377/process-instances-and-checkpoints</link><description>As I understand, process instances live in RAM until they are saved to disk, and this operation is performed at checkpoints. Questions: what happens to process instances if Appian experiences a sudden shutdown (e.g. due to a power loss in an on premise</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Process instances and checkpoints</title><link>https://community.appian.com/thread/75804?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 12:54:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0b8d6a92-123f-42d9-bd87-b146afbb396e</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;In this case a transaction refers to any time we update data, so it most cases it&amp;#39;s even &lt;em&gt;more&lt;/em&gt; granular than execution of a node. For instance, if I start a node, the node now becomes active (so its status has changed), so&amp;nbsp;that would be committed as a transaction. However, if a node is reassigned to someone else, that would also update information and would require a transaction.&lt;/p&gt;
&lt;p&gt;The best way to think about it is if you are able to see the information in the process monitoring view, then that information has already been committed!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process instances and checkpoints</title><link>https://community.appian.com/thread/75800?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 07:07:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1774ffd7-5df8-41cb-bf4b-d991a4c25ff3</guid><dc:creator>scristalli</dc:creator><description>&lt;p&gt;Thank you &lt;a href="/members/peter.lewis"&gt;Peter Lewis&lt;/a&gt; for the very detailed answer.&lt;/p&gt;
&lt;p&gt;May I ask what consitutes a transaction inside a process instance? Does the execution of every node count as a separate transaction, or only certain nodes are considered for &amp;quot;commit&amp;quot;? Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process instances and checkpoints</title><link>https://community.appian.com/thread/75796?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 22:15:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40c9593f-3a4c-4379-8809-8d726f464abb</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;This is not entirely true - process instances live in memory until they are &lt;strong&gt;archived&lt;/strong&gt;. You can set an &lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;archival policy&lt;/a&gt; to archive your process instance data a certain number of days after the process is completed or canceled.&lt;/p&gt;
&lt;p&gt;I think it&amp;#39;s useful to discuss a bit more about how Appian engines work. In Appian, we have a bunch of different kinds of engines that store data related to running Appian. For example, we have engines related to documents (content engine), users (personalization engine), processes (process exec and analytics engines), etc. The main engine you&amp;#39;re talking about above is the process execution engine, which stores information about each in-flight process.&lt;/p&gt;
&lt;p&gt;There are also two main parts to the engine: the in-memory database that stores your data and a .kdb file that is saved to disk. The .kdb file&amp;nbsp;consists of a snapshot of the database and a transaction file. It&amp;#39;s important to note that any transaction that occurs in Appian will write to both the in memory database and the transaction log in the .kdb file. This way, even if there is a sudden shutdown, we still have all the transactions saved to disk (so we can replay all the transactions to get the database to its proper state).&lt;/p&gt;
&lt;p&gt;However, as you can imagine the transaction log can get to be quite large. If we actually did need to replay all the transactions from the beginning, it could take quite a while. So, this is where we use checkpointing. The purpose of checkpointing is to copy the current state of the in-memory database to the .kdb as the database snapshot. Now, if a shutdown occurs, we only have to replay the transactions since the last snapshot, which should allow us to restart Appian much more quickly.&lt;/p&gt;
&lt;p&gt;All this to say, it shouldn&amp;#39;t be necessary to perform a checkpoint as a step in an Appian process&amp;nbsp;because the engine data is always stored both in memory and on disk. In fact, Appian will &lt;a href="https://docs.appian.com/suite/help/latest/Configuring_Application_Checkpointing.html"&gt;automatically checkpoint&lt;/a&gt;&amp;nbsp;if the expected time to replay all the transactions since the last successful checkpoint exceeds a given threshold.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>