{"id":13814990,"url":"https://github.com/doubaokun/metaq-php","last_synced_at":"2026-01-26T13:18:09.197Z","repository":{"id":10430817,"uuid":"12594000","full_name":"doubaokun/metaq-php","owner":"doubaokun","description":"MetaQ PHP client library","archived":false,"fork":false,"pushed_at":"2013-10-09T02:20:21.000Z","size":125,"stargazers_count":38,"open_issues_count":3,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-05T04:08:06.888Z","etag":null,"topics":["consumer","metaq","metaq-php","php","zookeeper"],"latest_commit_sha":null,"homepage":"https://github.com/doubaokun/metaq-php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"github/markup","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doubaokun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-04T15:08:35.000Z","updated_at":"2022-11-17T03:52:19.000Z","dependencies_parsed_at":"2022-08-29T15:42:05.880Z","dependency_job_id":null,"html_url":"https://github.com/doubaokun/metaq-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubaokun%2Fmetaq-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubaokun%2Fmetaq-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubaokun%2Fmetaq-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubaokun%2Fmetaq-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doubaokun","download_url":"https://codeload.github.com/doubaokun/metaq-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225335185,"owners_count":17458225,"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":["consumer","metaq","metaq-php","php","zookeeper"],"created_at":"2024-08-04T04:02:49.610Z","updated_at":"2026-01-26T13:18:09.166Z","avatar_url":"https://github.com/doubaokun.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"#MetaQ PHP Client library\n\n* Support producer short connection and long connection, this require the config file\n* Producer random select a broker-partition for load balance, no proxy required\n* Support master async salve group cluster, circle backups\n* Producer auto failover\n* Consumer will read from both master and slaves\n* Slave broker can be read by consumers\n* Store consumer offset in zookeeper\n* Consumer do not require the config file, they will fetch meta data from zookeeper\n* Consumer will auto-rebalance if consumer group changes\n* Suggest to use superviord auto restarting when consumer process dies. see http://supervisord.org/\n\n\n##MetaQ server installation and configurations:\n\n    wget http://fnil.net/downloads/metaq-server-1.4.6.2.tar.gz\n\n    Web UI for MetaQ: http://ip:8120/\n    Web UI for zookeeper: https://github.com/qiuxiafei/zk-web.git\n\n##Notes\n\n### Remember to set \n\n    updateConsumerOffsets=false\n\n### Master node configuration:\n\n    [system]\n    brokerId=0\n    numPartitions=1\n    serverPort=8123\n    dashboardHttpPort=8120\n    unflushThreshold=1000\n    unflushInterval=10000\n    maxSegmentSize=1073741824\n    maxTransferSize=1048576\n    deletePolicy=delete,168\n    deleteWhen=0 0 6,18 * * ?\n    flushTxLogAtCommit=1\n    stat=true\n    getProcessThreadCount=40\n    putProcessThreadCount=40\n    dataPath=/home/bruce/meta2\n    \n    ;; Update consumers offsets to current max offsets when consumers offsets are out of range of current broker's messages.\n    ;; It must be false in production.But recommend to be true in development or test.\n    updateConsumerOffsets=false\n\n    [zookeeper]\n    zk.zkConnect=localhost:2181\n    zk.zkSessionTimeoutMs=30000\n    zk.zkConnectionTimeoutMs=30000\n    zk.zkSyncTimeMs=5000\n\n    ;; Topics section\n    [topic=t1]\n    numPartitions=5\n\n### Slave configuration:\n\n    slaveId=1\n    slaveGroup=meta-slave-group\n    slaveMaxDelayInMills=50\n    autoSyncMasterConfig=true\n\n### Install PHP zookeeper extension:\n\n    1. Install libzookeeper\n    2. pecl install zookeeper-0.2.2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoubaokun%2Fmetaq-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoubaokun%2Fmetaq-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoubaokun%2Fmetaq-php/lists"}