PageSourceSearch

https://memgraph.com/docs/_next/static/chunks/pages/clustering/rep…/system-replication-bf27e7950e1cf20f.js

js memgraph.com collected 2026-10-02 04:45:19 UTC 13,073 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2986],{13615:(e,r,t)=>{"use strict";t.d(r,{P:()=>s});var n=t(23798);function s(e){let{children:r}=e;return(0,n.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 pt-12",children:r})}},16812:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>c,useTOC:()=>o});var n=t(23798),s=t(28293),a=t(67106),i=t(19935),l=t(66863),d=t(63279);function o(e){return[{value:"Audit logs",id:"audit-logs",depth:2},{value:(0,n.jsxs)(n.Fragment,{children:["Auth data replication ",(0,n.jsx)("sup",{style:{fontSize:"0.6em",color:"#888"},children:"Enterprise"})]}),id:"auth-data-replication-enterprise",depth:2},{value:"Auth modules replication",id:"auth-modules-replication",depth:2},{value:(0,n.jsxs)(n.Fragment,{children:["Multi-tenant data replication ",(0,n.jsx)("sup",{style:{fontSize:"0.6em",color:"#888"},children:"Enterprise"})]}),id:"multi-tenant-data-replication-enterprise",depth:2}]}let c=(0,s.e)(function(e){let{toc:r=o(e)}=e,t={a:"a",br:"br",code:"code",h1:"h1",h2:"h2",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(t.h1,{children:["System replication ",(0,n.jsx)("sup",{style:{fontSize:"0.6em",color:"#888"},children:"Enterprise"})]}),"\n",(0,n.jsxs)(t.p,{children:["In Memgraph Enterprise, replication extends beyond graph data.",(0,n.jsx)(t.br,{}),"\n","In addition to nodes, relationships, indexes, constraints, and triggers,\n",(0,n.jsx)(t.strong,{children:"system-level data"})," is also replicated across the cluster."]}),"\n",(0,n.jsxs)(t.p,{children:["System replication ensures that REPLICA instances reflect not only the data\nstored in the graph but also the ",(0,n.jsx)(t.strong,{children:"authentication setup"}),", ",(0,n.jsx)(t.strong,{children:"multi-tenant\nconfiguration"}),",",(0,n.jsx)(t.br,{}),"\n","and ",(0,n.jsx)(t.strong,{children:"database lifecycle operations"})," performed on the MAIN instance."]}),"\n",(0,n.jsx)(t.p,{children:"This enables REPLICAs to behave as consistent, fully usable read copies of the\nMAIN."}),"\n",(0,n.jsx)(t.h2,{id:r[0].id,children:r[0].value}),"\n",(0,n.jsxs)(t.p,{children:["Audit logs are currently ",(0,n.jsx)(t.strong,{children:"not"})," replicated inside Memgraph."]}),"\n",(0,n.jsx)(t.h2,{id:r[1].id,children:r[1].value}),"\n",(0,n.jsx)(t.p,{children:"If you are using a Memgraph Enterprise license, all authentication/authorization\ndata, including users, roles, and associated permissions, will be replicated."}),"\n",(0,n.jsx)(l.P,{children:(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.strong,{children:"Memgraph Community does not replicate users and roles."})," Only graph data\n(nodes, relationships, indices, constraints, and other graph constructs) are\nreplicated."]})}),"\n",(0,n.jsx)(t.h2,{id:r[2].id,children:r[2].value}),"\n",(0,n.jsx)(t.p,{children:"Authentication modules are not replicated and must be configured manually by the\nadministrator."}),"\n",(0,n.jsx)(t.h2,{id:r[3].id,children:r[3].value}),"\n",(0,n.jsx)(t.p,{children:"With multi-tenancy enabled in Memgraph Enterprise:"}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:"Creating or dropping databases on the MAIN is replicated to all REPLICA instances."}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.a,{href:"/database-management/multi-tenancy#suspending-and-resuming-databases-enterprise",children:"Suspending or resuming a database"}),"\non the MAIN is replicated the same way: each REPLICA applies the transition and\nconverges to the MAIN’s authoritative HOT/COLD set, including replicas that were\ndisconnected, lagging, or restarted while the transition happened. ",(0,n.jsx)(t.code,{children:"SUSPEND"}),"/",(0,n.jsx)(t.code,{children:"RESUME DATABASE"})," are rejected on a REPLICA (",(0,n.jsx)(t.code,{children:"Query forbidden on the replica!"}),") — issue them\nonly on the MAIN."]}),"\n",(0,n.jsxs)(t.li,{children:["REPLICAs can ",(0,n.jsx)(t.strong,{children:"use"})," databases (read-only), but only the MAIN may ",(0,n.jsx)(t.strong,{children:"modify"})," them."]}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"When a database is dropped:"}),"\n",(0,n.jsxs)(t.ol,{children:["\n",(0,n.jsx)(t.li,{children:"REPLICA instances mark the database as hidden."}),"\n",(0,n.jsx)(t.li,{children:"New sessions cannot use it."}),"\n",(0,n.jsx)(t.li,{children:"Once all active sessions release the database, it is fully deleted."}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"This ensures safe and predictable removal of tenant databases across the cluster."}),"\n",(0,n.jsx)(d.h,{})]})},"/clustering/replication/system-replication",{filePath:"pages/clustering/replication/system-replication.mdx",hasJsxInH1:!0,timestamp:1789565618e3,pageMap:a.O,frontMatter:{title:"System replication",description:"Dive into the documentation page for Memgraph and learn how to configure replication for data redundancy and disaster recovery. Examine the power of replication for enhanced data reliability."},title:"System replication"},"undefined"==typeof RemoteContent?o:RemoteContent.useTOC)},39781:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var n=t(23798);t(21462);let s=()=>(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"fill-[#636363] dark:fill-[#666364]",children:(0,n.jsx)("path",{d:"M20.317 4.369C18.725 3.569 17.03 3.029 15.27 2.757c-.068.124-.142.284-.195.411-1.447-.214-2.9-.214-4.347 0-.058-.127-.126-.287-.195-.411C6.972 3.029 5.277 3.569 3.683 4.369c-2.348 3.916-2.983 7.728-2.67 11.491 1.88 1.351 3.7 2.187 5.51 2.737.435-.597.822-1.237 1.152-1.919-.633-.242-1.238-.522-1.824
1-.844.156-.123.31-.25.463-.377 1.204.522 2.475.871 3.806 1.013.122-.284.234-.572.336-.864-1.155-.17-2.29-.51-3.364-.98.095-.125.191-.247.288-.37 2.428.91 5.049.91 7.465 0 .098.123.194.245.288.37-1.074.47-2.21.81-3.364.98.1.292.212.58.336.864 1.331-.142 2.603-.491 3.806-1.013.153.127.308.254.463.377-.586.322-1.191.602-1.824.844.33.682.717 1.322 1.152 1.919 1.808-.55 3.63-1.386 5.51-2.737.321-3.763-.32-7.575-2.67-11.491ZM8.833 13.348c-.813 0-1.473-.752-1.473-1.677s.657-1.679 1.473-1.679c.817 0 1.477.752 1.477 1.679 0 .925-.66 1.677-1.477 1.677Zm6.334 0c-.813 0-1.473-.752-1.473-1.677s.657-1.679 1.473-1.679c.817 0 1.477.752 1.477 1.679 0 .925-.66 1.677-1.477 1.677Z"})})},63279:(e,r,t)=>{"use strict";t.d(r,{h:()=>o});var n=t(23798),s=t(13615),a=t(78952),i=t(39781),l=t(82408);t(21462);let d=()=>(0,n.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"fill-[#636363] dark:fill-[#666364]",children:[(0,n.jsx)("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3Zm1 15a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V10h16v9Zm0-11H4V7a1 1 0 0 1 1-1h1v2h2V6h8v2h2V6h1a1 1 0 0 1 1 1v1Z"}),(0,n.jsx)("rect",{x:"6",y:"12",width:"2",height:"2",rx:"1"}),(0,n.jsx)("rect",{x:"10",y:"12",width:"2",height:"2",rx:"1"}),(0,n.jsx)("rect",{x:"14",y:"12",width:"2",height:"2",rx:"1"}),(0,n.jsx)("rect",{x:"6",y:"16",width:"2",height:"2",rx:"1"}),(0,n.jsx)("rect",{x:"10",y:"16",width:"2",height:"2",rx:"1"}),(0,n.jsx)("rect",{x:"14",y:"16",width:"2",height:"2",rx:"1"})]});function o(){return(0,n.jsxs)("div",{children:[(0,n.jsx)("hr",{className:"border-t-1 border-[#e3e6e8] mt-12"}),(0,n.jsxs)(s.P,{children:[(0,n.jsx)(a.u,{icon:(0,n.jsx)(i.A,{}),title:"Discord",body:"Join the community",href:"https://discord.gg/memgraph",is_external:!0}),(0,n.jsx)(a.u,{icon:(0,n.jsx)(l.A,{}),title:"GitHub",body:"Ask a question",href:"https://github.com/memgraph/memgraph/discussions",is_external:!0}),(0,n.jsx)(a.u,{icon:(0,n.jsx)(d,{}),title:"Office hours",body:"Talk with Memgraph engineers",href:"https://memgraph.com/office-hours",is_external:!0})]})]})}},66863:(e,r,t)=>{"use strict";t.d(r,{P:()=>d});var n=t(23798),s=t(71623),a=t(86665);let i={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,n.jsx)(a.KS,{className:"_mt-1"}),warning:"⚠️"},l={default:(0,s.A)("_border-orange-100 _bg-orange-50 _text-orange-800 dark:_border-orange-400/30 dark:_bg-orange-400/20 dark:_text-orange-300"),error:(0,s.A)("_border-red-200 _bg-red-100 _text-red-900 dark:_border-red-200/30 dark:_bg-red-900/30 dark:_text-red-200"),info:(0,s.A)("_border-blue-200 _bg-blue-100 _text-blue-900 dark:_border-blue-200/30 dark:_bg-blue-900/30 dark:_text-blue-200"),warning:(0,s.A)("_border-yellow-100 _bg-yellow-50 _text-yellow-900 dark:_border-yellow-200/30 dark:_bg-yellow-700/30 dark:_text-yellow-200")};function d({children:e,type:r="default",emoji:t=i[r]}){return(0,n.jsxs)("div",{className:(0,s.A)("nextra-callout _overflow-x-auto _mt-6 _flex _rounded-lg _border _py-2 ltr:_pr-4 rtl:_pl-4","contrast-more:_border-current contrast-more:dark:_border-current",l[r]),children:[(0,n.jsx)("div",{className:"_select-none _text-xl ltr:_pl-3 ltr:_pr-2 rtl:_pr-3 rtl:_pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:t}),(0,n.jsx)("div",{className:"_w-full _min-w-0 _leading-7",children:e})]})}},78952:(e,r,t)=>{"use strict";t.d(r,{u:()=>s});var n=t(23798);function s(e){let{icon:r,title:t,href:s,body:a,is_external:i}=e;return(0,n.jsx)("a",{href:s,target:i?"_blank":"",className:"social-card group flex flex-col justify-start overflow-hidden rounded-lg border border-gray-200 text-current no-underline dark:shadow-none hover:shadow-gray-100 dark:hover:shadow-none shadow-gray-100 active:shadow-sm active:shadow-gray-200 transition-all duration-200 hover:border-gray-300 bg-transparent shadow-sm dark:border-neutral-800 hover:bg-slate-50 hover:shadow-md dark:hover:border-neutral-700 dark:hover:bg-neutral-900",children:(0,n.jsxs)("div",{className:"p-4 flex flex-col gap-2 dark:bg-[#3a3436]",children:[(0,n.jsxs)("div",{className:"flex font-semibold items-start gap-2 text-gray-700 dark:text-gray-100 items-center",children:[r,(0,n.jsx)("span",{children:t})]}),a&&(0,n.jsx)("p",{className:"mt-2 text-sm font-medium text-gray-600 dark:text-gray-300",children:a})]})})}},82408:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var n=t(23798);t(21462);let s=()=>(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.4704 12.1978C23.4704 14.6376 22.756 16.832 21.3272 18.7809C19.8984 20.7299 18.0527 22.0785 15.7901 22.827C15.5267 22.8756 15.3341 22.8416 15.2122 22.7249C15.0903 22.6083 15.0294 22.4625 15.0294 22.2875V19.211C15.0294 18.2682 14.7758 17.578 14.2686 17.1406C14.8245 17.0823 15.3244 16.9948 15.7681 16.8782C16.2119 16.7615 16.6702 16.572 17.1433 16.3095C17.6163 16.0471 18.0113 15.7239 18.3282 15.3399C18.6452 14.956 18.9036 14.4457 19.1036 13.809C19.3035 13.1723 19.4035 12.4408 19.4035 11.6146C19.4035 10.4384 19.0182 9.43726 18.2478 8.61102C18.6086 7.72647 18.5696 6.735 18.1307 5.6366C17.8577 5.54912 17.4627 5.60258 16.9458 5.79699C16.4289 5.99139 15.9802 6.20524 15.5999 6.43853L15.044 6.78846C14.137 6.53573 13.2007 6.40937 12.2352 6.40937C11.2697 6.40937 10.3334 6.53573 9.42638 6.78846C9.27034 6.68154 9.0631 6.55031 8.80465 6.39479C8.5462 6.23926 8.13902 6.05215 7.58311 5.83344C7.0272 5.61473 6.60784 5.54912 6.32501 5.6366C5.89589 6.735 5.86175 7.72647 6.2226 8.61102C5.45213 9.43726 5.0669 10.4384 5.0669 11.6146C5.0669 12.4408 5.16687 13.1699 5.3668 13.8017C5.56673 14.4335 5.82274 14.9438 6.13483 15.3326C6.44692 15.7214 6.83947 16.0471 7.31248 16.3095C7.78549 16.572 8.24386 16.7615 8.68761 16.8782C9.13137 16.9948 9.63119 17.0823 10.1871 17.1406C9.79699 17.4906 9.55805 17.9911 9.47028 18.6424C9.26547 18.7396 9.04603 18.8125 8.81197 18.8611C8.5779 18.9097 8.29995 18.934 7.9781 18.934C7.65626 18.934 7.33686 18.8295 7.01989 18.6205C6.70292 18.4116 6.43229 18.1078 6.20798 17.7093C6.02267 17.3982 5.78617 17.1455 5.49847 16.9511C5.21076 16.7567 4.96938 16.64 4.77432 16.6011L4.48174 16.5574C4.27693 16.5574 4.13552 16.5793 4.0575 16.623C3.97947 16.6668 3.95509 16.7226 3.98434 16.7907C4.0136 16.8587 4.0575 16.9268 4.11601 16.9948C4.17453 17.0629 4.23792 17.1212 4.30619 17.1698L4.40859 17.2427C4.62315 17.3399 4.83527 17.5246 5.04496 17.7967C5.25465 18.0689 5.40825 18.3
1168 5.50578 18.5403L5.65207 18.8757C5.77886 19.2451 5.99342 19.544 6.29575 19.7724C6.59809 20.0008 6.9248 20.1466 7.2759 20.2098C7.627 20.273 7.96591 20.307 8.29263 20.3119C8.61934 20.3167 8.88998 20.2997 9.10455 20.2608L9.44102 20.2025C9.44102 20.5719 9.44346 21.0044 9.44833 21.5002C9.45321 21.9959 9.45564 22.2584 9.45564 22.2875C9.45564 22.4625 9.39225 22.6083 9.26546 22.7249C9.13868 22.8416 8.94362 22.8756 8.6803 22.827C6.41765 22.0785 4.57196 20.7299 3.14317 18.7809C1.71439 16.832 1 14.6376 1 12.1978C1 10.1663 1.50227 8.29269 2.50681 6.57704C3.51134 4.86139 4.87428 3.50299 6.59565 2.50179C8.31702 1.50059 10.1968 1 12.2352 1C14.2735 1 16.1533 1.50059 17.8747 2.50179C19.5961 3.50299 20.959 4.86139 21.9636 6.57704C22.9681 8.29269 23.4704 10.1663 23.4704 12.1978Z",fill:"#646265"})})},90390:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/clustering/replication/system-replication",function(){return t(16812)}])}},e=>{e.O(0,[8293,7106,636,6593,8792],()=>e(e.s=90390)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.