AntTP - Serving Autonomi data over HTTP

I object should be 1878 :wink:

3 Likes

Please…

This project is associated with winners, no the inferior second team in each city that wears blue…

Away for a solitary walk :rofl:

2 Likes

First toilet paper, now celtic fc… for the avoidance of any doubt, AntTP is affiliated with neither of these! :laughing:

5 Likes

UTFT :joy::joy::joy:

1 Like

what have I started :rofl:

2 Likes

A bit vague that , innit?

Who is your money on if the teams were to meet in a few weeks?

@aatonnomicc The above is a subject that should probably not be discussed at the LONG_OVERDUE meeting of the Autonomi Formation Drinking Ensemble (Lauriston Division) - cos we have better things to tlk about :slight_smile:

I believe a foot ball is round that’s all i know about it :rofl:

4 Likes

But strange how deep it is in our culture that you immediately associated 18888 with Celtic and you are neither West Central Scotland,nor a fitba man.
The only better port no would be 25567 == 25th May 1967 European Cup Winners

but that one does not give off any hint of being a proxy while 18888 certainly does.

A wise choice, @Traktion, I salute you. Hail hail ( the Celts are here)

I havent found that joke yet. linky? <— In honour of Jinky - Jimmy Johnstone

I solemnly promise that is the last Celtic ref in this thread

Our American friends like to call toilet paper ‘TP’, apparently. Not much of a joke! Ha!

2 Likes

they must love TP-Link routers :rofl:

2 Likes

I have evidence to the contrary; a like of yours on the post where I mentioned it (though it was a while ago!):

It also references a bevis & butthead nonsense ‘TP for my bunghole’. Look it up if you want to be a little disturbed.

3 Likes

I completely missed that, the like would have been for the announcement itself, no the TP patter…

Anyway 18888 will signify much good luck for Chinese and East Asian users :slight_smile: :dragon: ← why no red dragon for even greater luck?

1 Like

I’ll let you pass that motion yourself.

Lets just say “Ant TP” must make for some interesting sensations

A new version 0.8.0 of AntTP has dropped!

If you want to try out the new AntTP link index, point your proxy enabled browser to http://index

What’s Changed

New Contributors

  • @cobite made their first contribution in #4

Github: Release v0.8.0 · traktion/AntTP · GitHub
Dockerhub: traktion/anttp - Docker Image
Cargo: cargo install anttp

10 Likes

Updated instructions for AntTP 0.8.0 now on port 18888

AntTp on Windows

  1. Download anttp.exe navigate to GitHub - traktion/AntTP: HTTP server for the Autonomi Network .
  2. Open Releases on the right hand side and download anttp.exe.
  3. Open your download folder and double click on anttp.exe it should open a terminal window for AntTp minimise this and open your browser.
  4. input to the browser bar this link http://localhost:18888/7b104439ad192c3e4e934f8025175f5ffbbf0fd07c7d843dd8e5e58194b52999/Night of the Living Dead.mp4

you should now be streaming the public domain movie ```Night of the living dead``

also the link will work in VLC media player if you select open network location if you preferer not to use your browser.

also if you set up a raspberry pi on you home network to run AntTp on you can use the VLC android app to stream direct from the network to your TV :wink:

7 Likes

A new v0.8.1 AntTP release is out.

  • Improves public archive path support to handle root directory listings.
  • Adds support for adding specific peers via configuration options.
  • Refactors to replace bools/news with options.
  • Allows arbitrary filename to be specified after an XOR address to give a content type hint.
  • Fixes bug where XOR URL files are cached locally. Only public archives are intended to be cached, currently.
  • Changes standard API route to /anttp-0/ instead of /api/v1/ to start to standardise with dweb.
  • Latest performance test results.
  • Updates task list with missing items.

EDIT: /anttp-0, not /ant-0! The git log is wrong :slight_smile:

Github: Release v0.8.1 · traktion/AntTP · GitHub
Dockerhub: https://hub.docker.com/r/traktion/anttp
Cargo: cargo install anttp

12 Likes

AntTP v0.9.1 is out and includes some big performance changes. It adds a hybrid LFU cache, which stores chunks to both memory and disk. It also persists items in the disk cache between restarts, which makes offline mode a step closer.

Caching is also a big step towards adding tarchive support, where the same chunk can contain a number of files. Expect support for tarchives to land next.

EDIT: Added some performance results here too: Performance testing upload/download using AntTP - #111 by Traktion

  • Adds LFU hybrid (disk/memory) cache for storing immutable data chunks. This uses the Foyer library.
  • Updates chunk streamer dependency to pass in a ChunkGetter implementation, which uses the immutable data cache.
  • Adds config options to tune the amount of memory and disk used for caching.
  • Updates dependencies to use the latest autonomi libraries.
  • Removes custom datamap and app-config caching, which now uses the LRU cache too.
  • Aligns cache worker threads count with download thread count
  • Improves error handling to remove panics where not necessary.
  • Fixes to anttp swagger URLs for chunk and pointer controller.

Github: Release v0.9.1 · traktion/AntTP · GitHub
Dockerhub: https://hub.docker.com/r/traktion/anttp
Cargo: cargo install anttp

9 Likes

@traktion I am thinking anttp together with say dweb should have their own prioritized private (sudo only) LXC system container(running alpine Linux) , appropriately resourced and prioritized in the host OS one step ahead of containers running antnodes ?

Thoughts?

This current laptop lab kit is a hybridized desktop lab experiment looking to simulate the average DUAL USE Autonomi Small Node Operator, uploader and downloader, plus Internet Web Daily Driver.

I am looking for Thoughts/Ideas from anyone on the forum on what their experience has been

RE: system resource needs would be for the following heavy use case full action streaming some HD 1024 movie? ie cpu %, RAM use, while doing daily driver stuff.

Goal is to validate a hybrid daily driver minimum system requirements environment fo the above use case to have good UI/UX when everything is running at the same time (Grok3 on Brave running a job providing feedback, Movie running PiP, Gsuite interaction/gmail and one other local app, in my case FreeCAD.)

I am looking at how one can set and then dynamically re-configure resource amounts and priorities in the HOS optimally setup to support the Incus dual LXC system contianerconfig below to run concurrently (ie as network fills up, auto adjust antnode count downward to ensure 20% free unaissgned FLASH NVME SSD space is always maitained to keep the systems other apps performant , ie browser Cache, local Disk writes, etc..)

That means the desired setup constrain is there is 80% of the systems resources (see below- used cheap wireless HP 5 laptop, which cost CDN $350 this year) left for a typical Hybrid user to run their daily apps aside from anything being done on Autonomi Network…,

while still being performant in the AN world to enjoy quickly provide quotes and earn emission and upload rewards,

and in the process, accumulate sufficient ANT to pay for infrequent uploads (movies, home video, pics, house documents, etc..), and to concurrently (seamlessly) be able to start viewing and downloading both private and public items posted on the Autonomi Network.

Initial ‘nextgen’ Config looks like this

HOS- Ubuntu 24.04.2 LTS
Brave Browser
Outlook365 (biz email et al, sometimes Teams is ued for vconf) 1-2 Tabs
Leo- Claude et al LLM use (Code Generator)
gmail,gdocs tabs (2)
protonmail tab
grok3.com tab (Research, Search, Code Generator)
X twitter Tab
Other Tabs (2 to 3) Intermittent Use (CoinMarketcap, CodeBerg, other social et al)
Metamask Wallet menu bar plug-in (active sometimes)
canman Web page + links to incus WEBUI page in other tabs (2 sometimes)
nushell daemon
FreeCAD local app
ZOIPER SIP VOIP Client
Zoom Standalone Client
Incus (LXD) container manager daemon
LXC Container 1- GOS Alpine Linux (128MB OH)
Dweb, anttp
2 Tabs

 LXC Container 2-  GOS Alpine Linux (128MB OH)
                              antup, antctl
                                         16 antnodes  with 17.5GB each on avg available
                                             assoc. logs 
                                             (1/3 of System Disk Space used)

+++++++++++++++++++++++++++++++++++++++++++++++++
System Background Info (current)
8 Antnodes launched with nodelaunchpad

  • Ubuntu 24.04.2 LTS
  • 2022 i7 16GB RAM Daily Driver with 1TB of NVME SSD Capacity,

currenlty consuming 1/3 of the Drive (35GB per antnode) and that

the current SC emission rewards for quotes on average, now

cover the annual cost of power at US $ 0.10 cents per Kilowatt hour,

system is running on average with 35 Watts consumption,

where the antnodes in steady state (not a lot of shuffling going on) consume 5%-8% of the CPU and

Memory consumption is hovering at 40MB of RAM, peaking occassionally to 50MB per antnode (400MB total to be safe)

As above:
Next Step

employ incus and nushell yaml driven automation script to have antctl to

deploy and oversubscribe by x2

the antnode count at 16 in its own container with its own private IP address to the ISP cable modem Router

Then add another LXC container also with its own priv. IP Address (no use of ETH0 shared bridge to run anttp with dweb.