<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:23:48 JST 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[INSTRM-322] Switch actor logging to rsyslog.</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-322</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;All logging for actors goes via &lt;tt&gt;opscore.sdss3logging&lt;/tt&gt;, which implements a StreamHandler to a RotatingLogHandler. This will not scale well to PFS: we should replace the final handler with a SyslogHandler to the instrument&apos;s rsyslog server.&lt;/p&gt;</description>
                <environment></environment>
        <key id="12204">INSTRM-322</key>
            <summary>Switch actor logging to rsyslog.</summary>
                <type id="3" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10518&amp;avatarType=issuetype">Task</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="1" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="arnaud.lefur">arnaud.lefur</assignee>
                                    <reporter username="cloomis">cloomis</reporter>
                        <labels>
                            <label>SPS</label>
                    </labels>
                <created>Tue, 10 Apr 2018 14:05:53 +0000</created>
                <updated>Fri, 10 Nov 2023 19:13:46 +0000</updated>
                                                                            <component>tron_actorcore</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                            <comment id="14909" author="hassan" created="Tue, 5 Feb 2019 14:18:09 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=arnaud.lefur&quot; class=&quot;user-hover&quot; rel=&quot;arnaud.lefur&quot;&gt;arnaud.lefur&lt;/a&gt; to ask &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=cloomis&quot; class=&quot;user-hover&quot; rel=&quot;cloomis&quot;&gt;cloomis&lt;/a&gt; for clarification.&lt;/p&gt;</comment>
                            <comment id="15054" author="hassan" created="Wed, 6 Mar 2019 15:13:24 +0000"  >&lt;p&gt;No further inputs needed from &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=cloomis&quot; class=&quot;user-hover&quot; rel=&quot;cloomis&quot;&gt;cloomis&lt;/a&gt;. &lt;/p&gt;</comment>
                            <comment id="15737" author="hassan" created="Wed, 10 Jul 2019 15:11:39 +0000"  >&lt;p&gt;Important for temperature boards - logging goes to a local file.&lt;/p&gt;</comment>
                            <comment id="16206" author="cloomis" created="Tue, 1 Oct 2019 17:04:38 +0000"  >&lt;p&gt;rsyslog is as disgusting an accretion of idiosyncratic features as I have ever seen. But it is well tested and does provide the features we need. Specifically, python &lt;tt&gt;logging&lt;/tt&gt; writes to &quot;syslog&quot; handlers, rsyslog lets you add memory or disk queues on outputs (solving &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-753&quot; title=&quot;Add short log cache to local disk for BEEs and SMBs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-753&quot;&gt;&lt;del&gt;INSTRM-753&lt;/del&gt;&lt;/a&gt;), and rsyslog writes to files, databases, streams of every kind.&lt;/p&gt;

&lt;p&gt;Just to corral the craziness, I&apos;ll always use RFC5424 (&quot;new syslog&quot; format; the RFC is written by the rsyslog author, sigh), and will always use the &quot;advanced&quot; configuration/scripting language.&lt;/p&gt;

&lt;p&gt;And will write to per-day log files saved in per-actor directories. Rsyslog allows writing to every imaginable output; we might well add PostgreSQL at some point, but not for now.&lt;/p&gt;</comment>
                            <comment id="17211" author="cloomis" created="Thu, 28 May 2020 18:43:04 +0000"  >&lt;p&gt;Bump, damnit. At least for the temperature boards: the disk filled up on temps-b1. We don&apos;t &lt;em&gt;need&lt;/em&gt; to record all command traffic, but I think we should.&lt;/p&gt;</comment>
                            <comment id="17426" author="cloomis" created="Wed, 8 Jul 2020 19:25:26 +0000"  >&lt;p&gt;bump bump on the temps boards. There is no workaround besides not logging, and we are wedging systems.&lt;/p&gt;</comment>
                            <comment id="17533" author="hassan" created="Thu, 13 Aug 2020 17:45:53 +0000"  >&lt;p&gt;Arnaud to look at Craig&apos;s proposal&lt;/p&gt;</comment>
                            <comment id="30958" author="hassan" created="Tue, 31 May 2022 23:44:56 +0000"  >&lt;p&gt;Following today&apos;s SMx discussion, this could be the cause of the recent problem where the STS lost contact with SM1.&lt;/p&gt;</comment>
                            <comment id="34189" author="cloomis" created="Thu, 27 Jul 2023 04:54:20 +0000"  >&lt;p&gt;Bump. On 2023-07-26 the /data NFS mount just got bounced on all the PFS hosts, and python logging from &lt;b&gt;all&lt;/b&gt; the PFS actors to /data/logs stopped. Being the scenes the failure might have been worse than mere silence: where were all the messages &lt;b&gt;going&lt;/b&gt;, I wonder? Getting queued, but is there a limit, etc.&lt;/p&gt;

&lt;p&gt;On the original question about whether the ugly but proven rsyslog is the right tool? I will not look further but invite others to do so. It is proven and we have proven that we can use it. We would been to choose a logging host, select the output (files vs db vs xxx) and write the exploder. Thoughts on the host, &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=hiro&quot; class=&quot;user-hover&quot; rel=&quot;hiro&quot;&gt;Yoshida, Hiroshige&lt;/a&gt;?&lt;/p&gt;</comment>
                            <comment id="35719" author="cloomis" created="Tue, 7 Nov 2023 20:59:45 +0000"  >&lt;p&gt;Bump again, at least for the SPS temp hosts, which do not use NFS at all and have one tiny disk.&lt;/p&gt;</comment>
                            <comment id="35744" author="arnaud.lefur" created="Thu, 9 Nov 2023 23:05:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=hiro&quot; class=&quot;user-hover&quot; rel=&quot;hiro&quot;&gt;Yoshida, Hiroshige&lt;/a&gt; we would need a rsyslog host, is that something you / CDM could easily provide ?&lt;/p&gt;</comment>
                            <comment id="35749" author="hiro" created="Fri, 10 Nov 2023 14:02:34 +0000"  >&lt;p&gt;Can&apos;t we use the existing logger-ics? It currently runs rsyslog (mainly for collecting server/host messages).&lt;/p&gt;</comment>
                            <comment id="35756" author="cloomis" created="Fri, 10 Nov 2023 19:13:46 +0000"  >&lt;p&gt;Is there a VM at IRx? Would be nice to maintain writes for SPS during outages. Could just use mhs-ics I guess. Maybe that&apos;s the right move.&lt;/p&gt;

&lt;p&gt;Also, does anyone have thoughts about storage? The obvious implementation is to explode back into the same /data/logs tree, but I&apos;m wondering if anyone has any experience/preference with any other. Are we running any log-friendly backends? &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="13742">INSTRM-753</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="23757">INSTRM-2045</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|zzst5b:2</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="47">SM1-2019 E</customfieldvalue>
    <customfieldvalue id="53">SM1-2019 J</customfieldvalue>
    <customfieldvalue id="83">SM1PD-2020 F</customfieldvalue>
    <customfieldvalue id="87">SM1PD-2020 J</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                        </customfields>
    </item>
</channel>
</rss>