{"id":146812,"date":"2025-10-30T11:11:58","date_gmt":"2025-10-30T09:11:58","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/vyshel-pgbalancer-1-0-balansirovshhik-nagruzki-postgresql-na-osnove-ii-podderzhivayushhij-rest-api-i-mqtt"},"modified":"2025-10-30T11:11:58","modified_gmt":"2025-10-30T09:11:58","slug":"vyshel-pgbalancer-1-0-balansirovshhik-nagruzki-postgresql-na-osnove-ii-podderzhivayushhij-rest-api-i-mqtt","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sq\/blog\/news\/vyshel-pgbalancer-1-0-balansirovshhik-nagruzki-postgresql-na-osnove-ii-podderzhivayushhij-rest-api-i-mqtt","title":{"rendered":"Doli pgbalancer 1.0, balancuesi i ngarkes\u00ebs PostgreSQL n\u00eb baz\u00eb t\u00eb AI, q\u00eb mb\u00ebshtet REST API dhe MQTT.","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>K\u00ebtu \u00ebsht\u00eb publikimi i par\u00eb i pgbalancer, nj\u00eb balancues ngarkese p\u00ebr PostgreSQL i bazuar n\u00eb inteligjenc\u00ebn artificiale me REST API dhe MQTT. Pgbalancer ofron trajtimin e pulit t\u00eb lidhjeve dhe balancimin e ngarkes\u00ebs p\u00ebr PostgreSQL, menaxhohet p\u00ebrmes protokollit HTTP dhe mb\u00ebshtet transmetimin e ngjarjeve n\u00eb koh\u00eb reale. Projekti \u00ebsht\u00eb krijuar si nj\u00eb fork i pgpool-II me p\u00ebrmir\u00ebsime serioze p\u00ebr rrugitjen e zgjedhjeve t\u00eb k\u00ebrkesave. Kodi \u00ebsht\u00eb shkruar n\u00eb gjuh\u00ebn C dhe shp\u00ebrndahet n\u00ebn licenc\u00ebn e hapur PostgreSQL.      <\/p>\n<p>Karakteristikat dhe ve\u00e7orit\u00eb kryesore:  <\/p>\n<ul>\n<li class=\"l\"> Puli i lidhjeve dhe balancimi i ngarkes\u00ebs.\n<li class=\"l\"> Ndarje automatike e emergjenc\u00ebs me mb\u00ebshtetje p\u00ebr timera watchdog.\n<li class=\"l\"> Monitorimi i disponueshm\u00ebris\u00eb dhe cache'i i k\u00ebrkesave.\n<li class=\"l\"> Autentifikimi SSL\/TLS, PAM\/LDAP.\n<li class=\"l\"> Kompatibilitet me PostgreSQL 13-18.\n<li class=\"l\">  \u00cbsht\u00eb pjes\u00eb e utiliteteve pgElephant, q\u00eb sigurojn\u00eb disponueshm\u00ebri t\u00eb lart\u00eb. Mund t\u00eb integrohet me pgraft p\u00ebr konsensusin Raft, monitorimi mb\u00ebshtetet nga pgSentinel.\n<li class=\"l\"> Balancimi i ngarkes\u00ebs me baz\u00eb n\u00eb IA.\n<ul>\n<li class=\"l\"> Algoritmet e m\u00ebsimit t\u00eb makineris\u00eb p\u00ebr rrug\u00ebzim t\u00eb zgjuar t\u00eb k\u00ebrkesave.\n<li class=\"l\"> M\u00ebsimi p\u00ebrshtatet n\u00eb var\u00ebsi t\u00eb koh\u00ebs s\u00eb p\u00ebrgjigjes s\u00eb k\u00ebrkesave dhe gjendjes s\u00eb burimeve. <a class=\"wpil_keyword_link\" href=\"https:\/\/prohoster.info\/sq\/server\/dts-los-angeles\/\" title=\"\u0441\u0435\u0440\u0432\u0435\u0440\u0430\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"3988\">\u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/a>.\n<li class=\"l\"> Vler\u00ebsohet gjendja n\u00eb koh\u00eb reale dhe parashikohet balancimi i k\u00ebrkesave.\n<li class=\"l\"> Parametra t\u00eb rregulluesh\u00ebm peshe p\u00ebr shpejt\u00ebsin\u00eb e m\u00ebsimit dhe shpejt\u00ebsin\u00eb e supozimeve t\u00eb ngjarjeve t\u00eb rastit.\n<li class=\"l\"> Mund\u00ebsi integrimi me platformat e monitorimit Prometheus dhe Grafana.  <\/ul>\n<p>Menaxhim p\u00ebrmes REST API.  <\/p>\n<ul>\n<li class=\"l\"> 17 funksione HTTP\/JSON p\u00ebr menaxhim t\u00eb plot\u00eb t\u00eb klasterit.\n<li class=\"l\"> Inkuadruar <a class=\"wpil_keyword_link\" href=\"https:\/\/prohoster.info\/sq\/server\/\"   title=\"server\" data-wpil-keyword-link=\"linked\">server<\/a> API q\u00eb punon n\u00eb portin 8080.\n<li class=\"l\"> Autentifikimi me tokenet JWT HMAC-SHA256.\n<li class=\"l\"> Marrja e statistikave dhe metrikave t\u00eb gjendjes s\u00eb ekzekutimit.\n<li class=\"l\"> Koha e p\u00ebrgjigjes \u00ebsht\u00eb m\u00eb pak se 10 ms.  <\/ul>\n<p>Transmetimi i ngjarjeve MQTT.  <\/p>\n<ul>\n<li class=\"l\"> MQTT p\u00ebrdoret p\u00ebr publikimin e ndryshimeve t\u00eb gjendjes s\u00eb nyjave, ndarjes emergjente dhe kontrolleve t\u00eb gjendjes s\u00eb burimeve n\u00eb koh\u00eb reale.\n<li class=\"l\"> Mund t\u00eb konfigurohen temat MQTT p\u00ebr lloje t\u00eb ndryshme ngjarjesh.\n<li class=\"l\"> Integrim me Mosquitto, EMQX ose \u00e7do broker MQTT.\n<li class=\"l\"> Siguron njoftim automatik p\u00ebr ngjarjet e jasht\u00ebzakonshme dhe ofron nj\u00eb kanal transmetimi p\u00ebr orkestrimin e klasterit.  <\/ul>\n<li class=\"l\"> Utilita e komandave bctl:\n<ul>\n<li class=\"l\"> \u0415\u0434\u0438\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0437\u0430\u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0439 \u0431\u043e\u043b\u0435\u0435 10 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 &#171;pcp_*&#187;.\n<li class=\"l\"> 3 formate dal\u00ebse: tabela, JSON ose format i pandryshuar.\n<li class=\"l\"> Shfaqja e tabelave t\u00eb formatuara me kuadrim p\u00ebr t\u00eb dh\u00ebnat runtime t\u00eb pgbalancer.\n<li class=\"l\"> Menaxhimi i larg\u00ebt dhe moda e daljes s\u00eb avancuar.  <\/ul>\n<li class=\"l\"> GitHub Actions Workflow:\n<ul>\n<li class=\"l\"> build-matrix.yml: Nd\u00ebrtime n\u00eb platforma t\u00eb shumta (Ubuntu, macOS, Rocky Linux).\n<li class=\"l\"> Mb\u00ebshtetje p\u00ebr PostgreSQL 13-18.\n<li class=\"l\"> DEB-paketat p\u00ebr Ubuntu 22.04\/24.04, Debian 11\/12.\n<li class=\"l\"> RPM-paketat p\u00ebr Rocky 9, AlmaLinux 9, CentOS Stream 9.\n<li class=\"l\"> Mb\u00ebshtetje p\u00ebr Autotools me integrim autoreconf.\n<li class=\"l\"> docs.yml: Shp\u00ebrndarja e dokumentacionit GitHub Pages.  <\/ul>\n<\/ul>\n<p>Burimi: <a rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=64140\">opennet.ru<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u043a pgbalancer, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 PostgreSQL \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u0441 REST API \u0438 MQTT. Pgbalancer \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u0443\u043b\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0438 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0443 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0434\u043b\u044f PostgreSQL, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 HTTP \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u0443\u044e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u043a\u0430\u043a \u0444\u043e\u0440\u043a pgpool-II \u0441 \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u044b\u043c\u0438 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0434\u043b\u044f \u0443\u043c\u043d\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u041a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-146812","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u043a pgbalancer, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 PostgreSQL \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u0441 REST API \u0438 MQTT.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/sq\/blog\/news\/vyshel-pgbalancer-1-0-balansirovshhik-nagruzki-postgresql-na-osnove-ii-podderzhivayushhij-rest-api-i-mqtt\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0412\u044b\u0448\u0435\u043b pgbalancer 1.0, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 PostgreSQL \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0418\u0418, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0439 REST API \u0438 MQTT | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u043a pgbalancer, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 PostgreSQL \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u0441 REST API \u0438 MQTT.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/blog\/news\/vyshel-pgbalancer-1-0-balansirovshhik-nagruzki-postgresql-na-osnove-ii-podderzhivayushhij-rest-api-i-mqtt\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-10-30T09:11:58+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-10-30T09:11:58+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Doli pgbalancer 1.0, balansuesi i ngarkes\u00ebs PostgreSQL i bazuar n\u00eb AI, q\u00eb mb\u00ebshtet REST API dhe MQTT | ProHoster","description":"L\u00ebshuar numri i par\u00eb i pgbalancer, balansuesi i ngarkes\u00ebs PostgreSQL i bazuar n\u00eb inteligjenc\u00ebn artificiale me REST API dhe MQTT.","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/news\/vyshel-pgbalancer-1-0-balansirovshhik-nagruzki-postgresql-na-osnove-ii-podderzhivayushhij-rest-api-i-mqtt","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0412\u044b\u0448\u0435\u043b pgbalancer 1.0, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 PostgreSQL \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0418\u0418, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0439 REST API \u0438 MQTT | ProHoster","og:description":"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u043a pgbalancer, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 PostgreSQL \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u0441 REST API \u0438 MQTT.","og:url":"https:\/\/prohoster.info\/sq\/blog\/news\/vyshel-pgbalancer-1-0-balansirovshhik-nagruzki-postgresql-na-osnove-ii-podderzhivayushhij-rest-api-i-mqtt","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2025-10-30T09:11:58+00:00","article:modified_time":"2025-10-30T09:11:58+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"146812","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-02-22 15:54:02","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2026-01-23 15:39:19","updated":"2026-02-22 15:54:02","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/146812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=146812"}],"version-history":[{"count":4,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/146812\/revisions"}],"predecessor-version":[{"id":173122,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/146812\/revisions\/173122"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=146812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=146812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=146812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}