{"id":16701468,"url":"https://github.com/ferd/recon_demo","last_synced_at":"2025-03-21T19:33:14.781Z","repository":{"id":17296599,"uuid":"20067012","full_name":"ferd/recon_demo","owner":"ferd","description":"Playground for recon, for practice and demos.","archived":false,"fork":false,"pushed_at":"2017-10-26T14:14:08.000Z","size":2191,"stargazers_count":65,"open_issues_count":1,"forks_count":32,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T04:42:46.942Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ferd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-22T15:46:05.000Z","updated_at":"2025-01-20T11:27:58.000Z","dependencies_parsed_at":"2022-08-25T10:50:16.040Z","dependency_job_id":null,"html_url":"https://github.com/ferd/recon_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferd%2Frecon_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferd%2Frecon_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferd%2Frecon_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferd%2Frecon_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ferd","download_url":"https://codeload.github.com/ferd/recon_demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244855715,"owners_count":20521691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T18:44:11.265Z","updated_at":"2025-03-21T19:33:14.468Z","avatar_url":"https://github.com/ferd.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Recon Demo #\n\n## WHAAAT ##\n\nRecon-demo is an app built to demo some of `recon`'s capabilities. It consists\nof 26 processes named and registered in gproc (using strings) as:\n\n    Alfa          November\n    Bravo         Oscar\n    Charlie       Papa\n    Delta         Quebec (woo!)\n    Echo          Romeo\n    Foxtrot       Sierra\n    Golf          Tango\n    Hotel         Uniform\n    India         Victor\n    Juliett       Whiskey\n    Kilo          Xray\n    Lima          Yankee\n    Mike          Zulu\n\nEach of them will:\n\n- have a non-deterministic behavior. Each run is different.\n- have a TCP connection open and listening\n- try to contact each other randomly\n- have different levels of chattiness and activity (frequency, msg size)\n- will randomly try to send messages over message passing or TCP\n- log nothing\n- have no particular debugging code in place\n- TCP is handled by each process starting its own listen socket, spawning a connector, accepting the connection, having the connector hand over the connected port, and store all of that data in a table (or Gproc) somewhere. Peers can use that connect port to send data to the process, but can't read from it unless they're the owner. This allows to do TCP work where everybody sends using the same connection, and is to be used more as a way to simplify the whole request/response setup. UDP could have been done similarly.\n\n## Questions to Answer ##\n\n- What's the system memory?\n- Is the node's CPU loaded?\n- Is any process mailbox overflowing?\n- Which chatty process takes the most memory?\n- Which chatty process is eating the most CPU?\n- Which chatty process is consuming the most bandwidth?\n- Which chatty process sends the most messages over TCP? The least?\n- Can chatty processes message themselves? (can this work with registered names? Do I need to check the chattiest one and see if it messages itself?)\n- If they send messages to themselves, can you make it so they can't without touching code? The opposite?\n- Can you estimate the overall frequency at which messages are sent globally?\n\n\n## Building ##\n\nAssumes you have `rebar3` installed somewhere:\n\n`rebar3 release`\n\n## Running ##\n\n`./_build/default/rel/recon_demo/bin/recon_demo`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferd%2Frecon_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferd%2Frecon_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferd%2Frecon_demo/lists"}