<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://opensimulator.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AYEngine</id>
		<title>Talk:YEngine - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AYEngine"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Talk:YEngine&amp;action=history"/>
		<updated>2026-05-25T00:38:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/index.php?title=Talk:YEngine&amp;diff=52135&amp;oldid=prev</id>
		<title>Gwyneth Llewelyn: /* Suspending scripts on only one region? */ new section</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Talk:YEngine&amp;diff=52135&amp;oldid=prev"/>
				<updated>2022-02-17T16:56:40Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Suspending scripts on only one region?: &lt;/span&gt; new section&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Suspending scripts on only one region? ==&lt;br /&gt;
&lt;br /&gt;
Hi all,&lt;br /&gt;
&lt;br /&gt;
My grid runs half a dozen instances, each with up to another half-dozen regions (it's an attempt at some crude load balancing...). One thing that annoys me is that there is no ''obvious'' console command (or &amp;lt;code&amp;gt;.INI&amp;lt;/code&amp;gt; entry) to suspend/enable scripts on only ''one'' region. Instead, it seems as if it's an all-or-nothing approach: either all scripts in the instance are automatically suspended, or none are. Is that right? I've been looking at &amp;lt;code&amp;gt;OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs&amp;lt;/code&amp;gt;, where some console commands are listed (under the &amp;lt;code&amp;gt;RunTest()&amp;lt;/code&amp;gt; private function). As far as I can see, the suspend command uses &amp;lt;code&amp;gt;SuspendThreads()&amp;lt;/code&amp;gt; to suspend ''all'' threads for the ''whole'' instance, and not just for ''one'' region in particular.&lt;br /&gt;
&lt;br /&gt;
Using &amp;lt;code&amp;gt;change region&amp;lt;/code&amp;gt; to tell the console to do commands just for that region has no effect on any YEngine commands; they will apply to the whole instance, irrespectively of what the console thinks the current region is. &lt;br /&gt;
&lt;br /&gt;
So, how is it possible to suspend YEngine scripts on one single region just from the console?&lt;br /&gt;
&lt;br /&gt;
I suppose it's possible to write a script with some &amp;lt;code&amp;gt;os*()&amp;lt;/code&amp;gt; functions that will force all other scripts to suspend themselves, but that's really the kind of trick I'd prefer to avoid...&lt;br /&gt;
&lt;br /&gt;
The main reason for suspending every script on a region is, of course, immediately being able to stop every rogue, runaway, or griefing script in the region, ''without'' requiring the grid manager to log in (which they might not be able to do). Granted, this is not the only use-case scenario; personally, I have an issue with certain thresholds having been reached on my own scripts — when they're left running unattended for several days or sometimes even just hours — which require some debugging before I activate them again; and, naturally enough, I wish to keep scripts running on the ''other'' regions on that instance. And there is also the obvious solution of launching ''another'' instance, move that region to this instance all by itself, and suspend scripts there. Again, this consumes operating system resources, and there are tradeoffs about how many instances are expected to run 'reasonably' on my specific server...&lt;br /&gt;
&lt;br /&gt;
I beieve that it would make a lot of sense in fully documenting the YEngine console commands on this wiki page, explaining their current capabilities and limitations (and, if known, which of those limitations are expected to be tackled by the core developers in a foreseeable future...).&lt;br /&gt;
&lt;br /&gt;
[[User:Gwyneth Llewelyn|Gwyneth Llewelyn]] ([[User talk:Gwyneth Llewelyn|talk]]) 08:56, 17 February 2022 (PST)&lt;/div&gt;</summary>
		<author><name>Gwyneth Llewelyn</name></author>	</entry>

	</feed>