<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.yoctoproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Hash_Equivalence_Server</id>
	<title>Hash Equivalence Server - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.yoctoproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Hash_Equivalence_Server"/>
	<link rel="alternate" type="text/html" href="https://wiki.yoctoproject.org/wiki/index.php?title=Hash_Equivalence_Server&amp;action=history"/>
	<updated>2026-04-18T16:03:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://wiki.yoctoproject.org/wiki/index.php?title=Hash_Equivalence_Server&amp;diff=85794&amp;oldid=prev</id>
		<title>MichaelHalstead: Document the public YP AB hashserv setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.yoctoproject.org/wiki/index.php?title=Hash_Equivalence_Server&amp;diff=85794&amp;oldid=prev"/>
		<updated>2023-05-18T17:40:50Z</updated>

		<summary type="html">&lt;p&gt;Document the public YP AB hashserv setup&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There are two hashserv instances running on on the Yocto Project autobuilder. The private read-write at &amp;#039;&amp;#039;&amp;#039;hashserv.yocto.io:8686&amp;#039;&amp;#039;&amp;#039; and the read-only public copy at &amp;#039;&amp;#039;&amp;#039;hashserv.yocto.io:8687&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
On a VM with 7.5GB of memory and 2 vcpus we created a 150GB fast volume and mounted it at /home/hashserv. Our hashserv.db hovers at about 35GB and has gone as high as 90GB. We setup up automated snapshots for backup.&lt;br /&gt;
&lt;br /&gt;
Run some commands to set up a user and grab the code:&lt;br /&gt;
  adduser --system hashserv&lt;br /&gt;
  su - hashserv&lt;br /&gt;
  git clone https://git.openembedded.org/bitbake&lt;br /&gt;
  exit&lt;br /&gt;
&lt;br /&gt;
Copy the following to /etc/systemd/system/hashserv.service&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;# /etc/systemd/system/hashserv.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Bitbake Hash Server&lt;br /&gt;
After=network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User=hashserv&lt;br /&gt;
WorkingDirectory=/home/hashserv&lt;br /&gt;
Type=simple&lt;br /&gt;
ExecStart=/usr/bin/python3 /home/hashserv/bitbake/bin/bitbake-hashserv --bind :8686&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Copy the following to /etc/systemd/system/hashserv-readonly.service&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;# /etc/systemd/system/hashserv-readonly.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Bitbake Read-Only Hash Server&lt;br /&gt;
After=network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
User=hashserv&lt;br /&gt;
WorkingDirectory=/home/hashserv&lt;br /&gt;
Type=simple&lt;br /&gt;
ExecStart=/usr/bin/python3 /home/hashserv/bitbake/bin/bitbake-hashserv --bind :8687 --read-only&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some commands to enable and start the services:&lt;br /&gt;
  systemctl daemon-reload&lt;br /&gt;
  systemctl enable hashserv.service hashserv-readonly.service&lt;br /&gt;
  systemctl start hashserv.service hashserv-readonly.service &lt;br /&gt;
&lt;br /&gt;
Then we opened up the firewall for 8686/tcp to our autobuilder private network and opened 8687/tcp to the world. There is no authentication so it&amp;#039;s important to use the correct firewall settings.&lt;/div&gt;</summary>
		<author><name>MichaelHalstead</name></author>
	</entry>
</feed>