{"id":13411937,"url":"https://github.com/couchbase/moss","last_synced_at":"2025-10-07T15:23:29.360Z","repository":{"id":37484450,"uuid":"51220375","full_name":"couchbase/moss","owner":"couchbase","description":"moss - a simple, fast, ordered, persistable, key-val storage library for golang","archived":false,"fork":false,"pushed_at":"2022-03-03T01:10:06.000Z","size":926,"stargazers_count":950,"open_issues_count":46,"forks_count":59,"subscribers_count":72,"default_branch":"master","last_synced_at":"2024-07-31T20:49:17.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/couchbase.png","metadata":{"files":{"readme":"README-dgm.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-06T20:27:22.000Z","updated_at":"2024-07-21T15:08:24.000Z","dependencies_parsed_at":"2022-07-12T16:19:04.974Z","dependency_job_id":null,"html_url":"https://github.com/couchbase/moss","commit_stats":null,"previous_names":["couchbaselabs/moss"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fmoss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fmoss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fmoss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fmoss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/couchbase","download_url":"https://codeload.github.com/couchbase/moss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243618698,"owners_count":20320279,"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-07-30T20:01:18.886Z","updated_at":"2025-10-07T15:23:24.326Z","avatar_url":"https://github.com/couchbase.png","language":"Go","readme":"# Instructions for DGM testing for moss\n\ndgm_moss_test.go is a moss component level test that exercises moss.\n\nIncluded in the test is a simulator of the moss herder memory stalling\nfunctionality.\n\nThe test can be configured to generate a Results*.json file that can be\nused with python script graph/dgm-moss-ploy.py to plot the resutls.\n\n## Steps\n\nHere is an example shell script to exercise the test.\n\n```\n#!/bin/bash\nfindDisk()\n{\n    dev=`df ${MossStore} | grep -v Filesystem | awk {'print $1'}`\n    dirName=`dirname ${dev}`\n    devName=`basename ${dev} ${dirName}`\n    echo ${devName}\n}\n\nclearCaches()\n{\n    sudo sync\n    sudo sh -c \"echo 1 \u003e /proc/sys/vm/drop_caches\"\n    sudo sh -c \"echo 2 \u003e /proc/sys/vm/drop_caches\"\n    sudo sh -c \"echo 3 \u003e /proc/sys/vm/drop_caches\"\n\n}\n\nMossStore=\"/mossstore/MossStoreTest\"\nmkdir -p -m=0777 ${MossStore}\ndiskMonitor=`findDisk`\nrunDesc=\"${gitInfo}\"\n\ngo test -v -test.run TestMossDGM -test.timeout 99999s -runTime 5m -memQuota 4gb -keyLength 48 -valueLength 48 -keyOrder random -numWriters 1 -writeBatchSize 100000 -writeBatchThinkTime 1ms -numReaders 16 -readBatchSize 100 -readBatchThinkTime 1ms -outputToFile -dbPath ${MossStore} -diskMonitor ${diskMonitor} -runDescription ${runDesc} -dbCreate\n```\n\n## Ploting a graph of the results\n\nThe python script requires numpy, pandas, matploglib\n\n```\npython dgm-moss-plot.py Results_...json\n```\n\nThis will process a Results...png file.\n\n## Notes\n\nThis test only runs properly on Linux as it gathers stats from /proc.\n","funding_links":[],"categories":["Database","Uncategorized","Go","数据库","Generators","Data Integration Frameworks","數據庫","数据库  `go语言实现的数据库`","\u003cspan id=\"数据库-database\"\u003e数据库 Database\u003c/span\u003e"],"sub_categories":["Databases Implemented in Go","Advanced Console UIs","Go中实现的数据库","标准 CLI","高級控制台界面","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","高级控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase%2Fmoss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcouchbase%2Fmoss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase%2Fmoss/lists"}