Skip to content

Commit b6b96e6

Browse files
committed
HPCC-27051 Create a Sasha service to clean up post-mortem files
WIP Signed-off-by: Dave Streeter <[email protected]>
1 parent 02cfe53 commit b6b96e6

File tree

5 files changed

+100
-0
lines changed

5 files changed

+100
-0
lines changed

docs/EN_US/ConfiguringHPCC/ConfiguringHPCC.xml

+23
Original file line numberDiff line numberDiff line change
@@ -2417,6 +2417,29 @@ sudo -u hpcc cp /etc/HPCCSystems/source/NewEnvironment.xml /etc/HPCCSystems/envi
24172417

24182418
<?hard-pagebreak ?>
24192419

2420+
<sect3>
2421+
<title>SashaServer Process DbgHk</title>
2422+
2423+
<para>This section describes the SashaServer Process DbgHk
2424+
tab.</para>
2425+
2426+
<para>
2427+
<graphic fileref="images/CM-img17-4.jpg" vendor="configmgrSS" />
2428+
</para>
2429+
2430+
<para />
2431+
2432+
<!--configMgr-Sasha-DbgHk-Include-XXX-24-->
2433+
2434+
<para>
2435+
<xi:include href="../XMLGeneration/xml/sasha.xsd.mod.xml"
2436+
xpointer="xpointer(//*[@id='sh.t5'])"
2437+
xmlns:xi="http://www.w3.org/2001/XInclude" />
2438+
</para>
2439+
</sect3>
2440+
2441+
<?hard-pagebreak ?>
2442+
24202443
<sect3>
24212444
<title>SashaServer Process DaFileSrvMonitor</title>
24222445

docs/PT_BR/ConfiguringHPCC/ConfiguringHPCC.xml

+24
Original file line numberDiff line numberDiff line change
@@ -2416,6 +2416,30 @@ sudo -u hpcc cp /etc/HPCCSystems/source/NewEnvironment.xml /etc/HPCCSystems/envi
24162416

24172417
<?hard-pagebreak ?>
24182418

2419+
<sect3>
2420+
<title>SashaServer Process DbgHk</title>
2421+
2422+
<para>Esta seção descreve a aba SashaServer Process
2423+
DbgHk</para>
2424+
2425+
<para>
2426+
<graphic fileref="images/CM-img17-4.jpg"
2427+
vendor="configmgrSS"/>
2428+
</para>
2429+
2430+
<para/>
2431+
2432+
<!--configMgr-Sasha-DbgHk-Include-XXX-24-->
2433+
2434+
<para>
2435+
<xi:include href="../XMLGeneration/xml/sasha.xsd.mod.xml"
2436+
xpointer="xpointer(//*[@id='sh.t5'])"
2437+
xmlns:xi="http://www.w3.org/2001/XInclude"/>
2438+
</para>
2439+
</sect3>
2440+
2441+
<?hard-pagebreak ?>
2442+
24192443
<sect3>
24202444
<title>SashaServer Process DaFileSrvMonitor</title>
24212445

initfiles/componentfiles/configschema/xsd/sasha.xsd

+10
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@
136136
hpcc:presetValue="0" hpcc:tooltip="minimum idle time before job will switch queues. (in minutes, 0 disables)"/>
137137
</xs:attributeGroup>
138138

139+
<xs:attributeGroup name="dbgHk" hpcc:groupByName="DbgHk" hpcc:docid="sh.t5">
140+
<xs:attribute name="ExpiryInterval" type="xs:nonNegativeInteger" hpcc:displayName="Expiry Interval (hours)"
141+
hpcc:presetValue="24" hpcc:tooltip="minimum interval between checking for distributed file expiry (in hours, 0 disables)"/>
142+
<xs:attribute name="ExpiryAt" type="cronSchedule" hpcc:displayName="Expiry Schedule (cron format)"
143+
hpcc:presetValue="* 3 * * *" hpcc:tooltip="schedule to check to remove post-mortem files (cron format)"/>
144+
<xs:attribute name="ExpiryDefault" type="xs:nonNegativeInteger" hpcc:displayName="Expiry Default (days)"
145+
hpcc:presetValue="14" hpcc:tooltip="Default number of days passed that post-mortem files are deleted after their associated workunit was completed"/>
146+
</xs:attributeGroup>
147+
139148
<xs:attributeGroup name="dfsrvmon" hpcc:groupbyName="DaFileSrvMonitor" hpcc:docid="sh.t7">
140149
<xs:attribute name="dafsmonInterval" type="xs:nonNegativeInteger" hpcc:displayName="DaFileSrv Mon Interval (hours)"
141150
hpcc:presetValue="0" hpcc:tooltip="minimum interval between running DaFileSrv monitor (in hours, 0 disables)"/>
@@ -180,6 +189,7 @@
180189
<xs:attributeGroup ref="dfuxref"/>
181190
<xs:attributeGroup ref="dfuexpiry"/>
182191
<xs:attributeGroup ref="thorqmon"/>
192+
<xs:attributeGroup ref="dbgHk"/>
183193
<xs:attributeGroup ref="dfsrvmon"/>
184194
</xs:complexType>
185195
</xs:element>

initfiles/componentfiles/configxml/sasha.xsd

+30
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136
<xs:attributeGroup ref="DfuXRef"/>
137137
<xs:attributeGroup ref="DfuExpiry"/>
138138
<xs:attributeGroup ref="ThorQMon"/>
139+
<xs:attributeGroup ref="DbgHk"/>
139140
<xs:attributeGroup ref="DaFileSrvMonitor"/>
140141
<xs:attribute name="build" type="buildType" use="required">
141142
<xs:annotation>
@@ -534,6 +535,35 @@
534535
</xs:annotation>
535536
</xs:attribute>
536537
</xs:attributeGroup>
538+
<xs:attributeGroup name="DbgHk">
539+
<!--DOC-Autobuild-code-->
540+
<xs:annotation>
541+
<xs:appinfo>
542+
<docid>sh.t5</docid>
543+
</xs:appinfo>
544+
</xs:annotation>
545+
<xs:attribute name="ExpiryInterval" type="xs:nonNegativeInteger" default="24">
546+
<xs:annotation>
547+
<xs:appinfo>
548+
<tooltip>minimum interval between checking to remove post-mortem files (in hours, 0 disables).</tooltip>
549+
</xs:appinfo>
550+
</xs:annotation>
551+
</xs:attribute>
552+
<xs:attribute name="ExpiryAt" type="xs:string" use="optional" default="* 3 * * *">
553+
<xs:annotation>
554+
<xs:appinfo>
555+
<tooltip>schedule to check to remove post-mortem files (cron format).</tooltip>
556+
</xs:appinfo>
557+
</xs:annotation>
558+
</xs:attribute>
559+
<xs:attribute name="ExpiryDefault" type="xs:nonNegativeInteger" use="optional" default="14">
560+
<xs:annotation>
561+
<xs:appinfo>
562+
<tooltip>Default number of days passed that post-mortem files are deleted after their associated workunit was completed</tooltip>
563+
</xs:appinfo>
564+
</xs:annotation>
565+
</xs:attribute>
566+
</xs:attributeGroup>
537567
<xs:attributeGroup name="DaFileSrvMonitor">
538568
<!--DOC-Autobuild-code-->
539569
<xs:annotation>

initfiles/componentfiles/configxml/sasha.xsl

+13
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,19 @@
260260
<xsl:value-of select="@thorQMonSwitchMinTime"/>
261261
</xsl:attribute>
262262
</xsl:element>
263+
<xsl:element name="DbgHk">
264+
<xsl:attribute name="interval">
265+
<xsl:value-of select="@ExpiryInterval"/>
266+
</xsl:attribute>
267+
<xsl:attribute name="at">
268+
<xsl:value-of select="@ExpiryAt"/>
269+
</xsl:attribute>
270+
<xsl:if test="string(@ExpiryDefault) != ''">
271+
<xsl:attribute name="expiryDefault">
272+
<xsl:value-of select="@ExpiryDefault"/>
273+
</xsl:attribute>
274+
</xsl:if>
275+
</xsl:element>
263276
<xsl:element name="DaFileSrvMonitor">
264277
<xsl:attribute name="interval">
265278
<xsl:value-of select="@dafsmonInterval"/>

0 commit comments

Comments
 (0)