<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.spiretrading.com/index.php?action=history&amp;feed=atom&amp;title=Service_Locator</id>
	<title>Service Locator - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.spiretrading.com/index.php?action=history&amp;feed=atom&amp;title=Service_Locator"/>
	<link rel="alternate" type="text/html" href="https://wiki.spiretrading.com/index.php?title=Service_Locator&amp;action=history"/>
	<updated>2026-05-29T21:33:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.spiretrading.com/index.php?title=Service_Locator&amp;diff=131&amp;oldid=prev</id>
		<title>Kamal: Created page with &quot;The Service Locator is a centralized server responsible for authenticating account logins, creating and managing user accounts, organizing accounts into directories, controlli...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.spiretrading.com/index.php?title=Service_Locator&amp;diff=131&amp;oldid=prev"/>
		<updated>2026-05-27T19:41:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The Service Locator is a centralized server responsible for authenticating account logins, creating and managing user accounts, organizing accounts into directories, controlli...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The Service Locator is a centralized server responsible for authenticating account logins, creating and managing user accounts, organizing accounts into directories, controlling permissions, and registering available services. It acts as a critical component for coordinating access control and service discovery. The Service Locator integrates with a MySQL database to persistently store account details, directory structures, permissions, and service registration data.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The Service Locator is configured via a YAML file that defines its network interface and data store settings. Below is the structure of the configuration file with example values:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# The network interface and port the Service Locator binds to.&lt;br /&gt;
interface: &amp;quot;0.0.0.0:20000&amp;quot;&lt;br /&gt;
&lt;br /&gt;
data_store:&lt;br /&gt;
  # The address of the MySQL server.&lt;br /&gt;
  address: &amp;quot;127.0.0.1:3306&amp;quot;&lt;br /&gt;
  # The username used to authenticate with MySQL.&lt;br /&gt;
  username: spireadmin&lt;br /&gt;
  # The password for the MySQL user.&lt;br /&gt;
  password: 1234&lt;br /&gt;
  # The name of the database schema where data is stored.&lt;br /&gt;
  schema: spire&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;code&amp;gt;setup.py&amp;lt;/code&amp;gt; script is provided for convenience to configure the Service Locator and generate the &amp;lt;code&amp;gt;config.yml&amp;lt;/code&amp;gt; file. The script supports the following arguments:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  --local 0.0.0.0                   # Local interface (default: auto-detected IP)&lt;br /&gt;
  --mysql_address 127.0.0.1:3306    # MySQL server address&lt;br /&gt;
  --mysql_username admin            # MySQL username (default: spireadmin)&lt;br /&gt;
  --mysql_password [REQUIRED]       # MySQL password (no default)&lt;br /&gt;
  --mysql_schema service_db         # Database schema (default: spire)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
&lt;br /&gt;
Log files are generated as &amp;lt;code&amp;gt;srv_[YYYY][MM][DD]_[HH]_[MM]_[SS].log&amp;lt;/code&amp;gt; in the runtime directory. Upon termination, non-empty log files are moved into the &amp;lt;code&amp;gt;log/&amp;lt;/code&amp;gt; subfolder, while empty log files are deleted.&lt;br /&gt;
&lt;br /&gt;
== Management ==&lt;br /&gt;
&lt;br /&gt;
The Service Locator is managed through three core scripts:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;start.sh&amp;lt;/code&amp;gt; - Starts the Service Locator server. Does nothing if the server is already running.&lt;br /&gt;
* &amp;lt;code&amp;gt;stop.sh&amp;lt;/code&amp;gt; - Stops an existing server instance and waits for the server to terminate.&lt;br /&gt;
* &amp;lt;code&amp;gt;check.sh&amp;lt;/code&amp;gt; - Verifies that the server is running and reports its status.&lt;/div&gt;</summary>
		<author><name>Kamal</name></author>
		
	</entry>
</feed>