<html><head><style>p{margin-top:0px;margin-bottom:0px;}</style></head><body><div name='mp-default' style='font-family:돋움,Dotum;font-size:10pt;'><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">Hello Kallithea, Thank you so much.</span></p><p><br></p><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">We ended up upgradingthe EC2 instane from t2.micro to r5.xlarge.</span></p><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">So the specifications of the instance are as follows.</span></p><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">(Intel Xeon </span><span style="font-family: 돋움, Dotum; font-size: 11pt;">3.1GHz </span><span style="font-family: "Malgun Gothic", sans-serif; font-size: 14px;"><span style="font-family: 돋움, Dotum; font-size: 11pt;">Skylake-SP or</span><span style="font-family: 돋움, Dotum; font-size: 11pt;"> Cascade Lake</span></span><span style="font-size: 11pt; font-family: 돋움, Dotum;">) vCPU = 4, RAM = 32GiB </span></p><p><br></p><p><span style="font-size: 11pt;">We set the thread value to 1 when you configure the ini file, the download will proceed as a result, although it is slow.</span></p><p><span style="font-size: 13.3333px;"><br></span></p><p><span style="font-size: 11pt;">The thing is the server would not be able to process anything else until the download is complete, so I want to increase the thread value more in the ini file.</span></p><p><span style="font-size: 11pt;">I'd like to know the possible risks.</span></p><p><span style="font-size: 11pt;"><br></span></p><p><span style="font-size: 11pt;">There is no other program running in the instance except for Kallithea.</span></p><br></div><font style="font-family:돋움,Dotum;font-size:10pt;"><span style="font-family: 돋움, Dotum; font-size: 11pt;">----- Original Message -----</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">From : Mads Kiilerich <mads@kiilerich.com></span><span style="font-size: 11pt; font-family: 돋움, Dotum;"></span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">To : "김태호" <taehokim@hicare.net>, <kallithea-general@sfconservancy.org></span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">Cc : "박정환" <jeonghwan.park@hicare.net></span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">Sent : 2021-06-17 06:07:21</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">Subject : Re: Kallithea 0.7.0 Running Environment Questions</span><br><br><br></font><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><div class="moz-cite-prefix"><span style="font-family: 돋움, Dotum; font-size: 11pt;">On 6/15/21 1:02 PM, 김태호 wrote:</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></div><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><blockquote type="cite" cite="mid:20210615110237.1930.36373@me226.mailplug.com"><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><div name="mp-default" style="font-family:돋움,Dotum;font-size:10pt;"><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">We are testing by
installing 0.7.0 version of Kallithea in two different
environments.</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">One was installed on
WSL2 on my Windows 10 computer, and the other on EC2
(t2.Micro, Ubuntu20.04) on AWS.</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">The Kallithea git repo
that I want to download is about 2.84GB.</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">There was no problem when I installed it on my PC to verify
that the installation process or configuration was wrong.</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">If I run the Kallithea
in WSL2, there is no problem with the download.</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">The specifications of
WSL2 are as follows.</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">CPU : Intel(R) Core(TM)
i7-1065G7 CPU @ 1.30GHz 1.50 GHz ( 8 core )</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">RAM: 16 GB </span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">EC2 is (</span><span style="font-size: 11pt; font-family: 돋움, Dotum;">t2.Micro) </span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-size: 11pt; font-family: 돋움, Dotum;">vCPU:
1</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-size: 11pt; font-family: 돋움, Dotum;">RAM:
1</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;"> </span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">However, if I run on an
EC2 instance, the following error :</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-size: 11pt; font-family: 돋움, Dotum;">-->
start</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><div><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><div><span style="font-size: 11pt; font-family: 돋움, Dotum;">error: RPC failed; HTTP
417 curl 22 The requested URL returned error: 417</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></div><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><div><span style="font-family: 돋움, Dotum; font-size: 11pt;">fatal: the remote
end hung up unexpectedly</span></div><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></div><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><div><span style="font-size: 11pt; font-family: 돋움, Dotum;">-->
end</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></div><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><div><span style="font-size: 13.3333px;"><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></span></div><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><div><span style="font-size: 11pt; font-family: 돋움, Dotum;">Debug
level log txt file </span><span style="font-family: 돋움, Dotum; font-size: 11pt;">is attached.</span></div><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></div><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></blockquote><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">You saw this at the end of the log file:</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">2021-06-15 10:31:38.805 DEBUG
[kallithea.config.middleware.pygrack] handling cmd ['git',
'upload-pack', '--stateless-rpc',
'/var/kallithea/repos/Hicare-Smart/v2/hub-android']</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
2021-06-15 10:33:12.303 ERROR
[kallithea.config.middleware.pygrack] Traceback (most recent call
last):</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
File
"/home/ubuntu/kallithea/lib/python3.8/site-packages/kallithea/config/middleware/pygrack.py",
line 160, in backend</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
out = subprocessio.SubprocessIOChunker(</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
File
"/home/ubuntu/kallithea/lib/python3.8/site-packages/kallithea/lib/vcs/subprocessio.py",
line 365, in __init__</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
raise EnvironmentError("Subprocess exited due to an error: %s"
% err)</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
OSError: Subprocess exited due to an error: b'error: pack-objects
died of signal 9\nerror: git upload-pack: git-pack-objects died
with error.\nfatal: git upload-pack: aborting due to possible
repository corruption on the remote side.\n'</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">Kallithea is invoking 'git', and Git fails, probably because the
server is out of memory.</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">You can perhaps reproduce pretty much the same problem by running
this on the server:</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;"> cd /var/kallithea/repos/Hicare-Smart/v2/hub-android</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;"> git bundle create /tmp/bundle --all</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">On the machine where the operation works on the same repo, you
can try to use</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;"> /usr/bin/time -v git bundle create /tmp/bundle --all</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
and the line with "Maximum resident set size (kbytes)" will tell how
much memory it is using.
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
While it is hard to give any advice on server size, it seems
reasonable that the the server at least must be of similar size as
the repo, multiplied by some factor. Next, the server size will
depend on for example how many simultaneous operations it should
handle.
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">I guess it would work (but be slow) if the system is configured
with plenty of swap space. But real RAM is better.</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><br><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span></p><span style="font-family: 돋움, Dotum; font-size: 11pt;">
</span><p><span style="font-family: 돋움, Dotum; font-size: 11pt;">/Mads</span><br>
</p><p style="text-align: left;"><br></p><p style="text-align: left;"></p></body></html><img src="http://mail.hicare.net/api/notify.php?home=MjAyMTA2MTcxNDA0MjR8a2FsbGl0aGVhLWdlbmVyYWxAc2Zjb25zZXJ2YW5jeS5vcmd8dGFlaG9raW1AaGljYXJlLm5ldA==">