percona | Development repository for the percona cookbook | Infrastructure Automation library
kandi X-RAY | percona Summary
kandi X-RAY | percona Summary
Installs the Percona MySQL client and/or server components. (We are attempting to leverage the Sous-Chefs MySQL cookbook as much as possible.).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a new IP address .
- Binds a node to the given interface .
- Finds the interface for an IP address .
- Returns true if the given address is private .
- Returns true if the host is connected
percona Key Features
percona Examples and Code Snippets
Community Discussions
Trending Discussions on percona
QUESTION
I'm working on backup solutions for mongodb instances using percona backup manager.
When I do pbm list
if the PITR option is enabled, I get the output for snapshot and oplog slice ranges.
Is there a way to determine which oplog slice range belongs to which backup from the output programmatically so that I can associate an oplog slice range to a snapshot.
...ANSWER
Answered 2021-Jun-15 at 07:35Slice always starts =>(greater than equal) of full snapshot time and <(less than) next full snapshot.
for example 2020-12-14T14:26:20Z [complete: 2020-12-14T14:34:39] for this backup PITR(Slice) is 2020-12-14T14:26:40 - 2020-12-16T17:27:26
if you want to restore then first restore 2020-12-14T14:26:20Z [complete: 2020-12-14T14:34:39] then apply 2020-12-14T14:26:40 - 2020-12-16T17:27:26 this slice and you'll get data till 2020-12-16T17:27:26
You can get more details here https://www.percona.com/doc/percona-backup-mongodb/point-in-time-recovery.html
QUESTION
I register 3 hosts key and try to loop my host let another remote host save the key
...ANSWER
Answered 2021-May-27 at 08:39You cannot use curly braces inside curly braces.
QUESTION
I have never used apc_store() before, and I'm also not sure about whether to free query results or not. So I have these questions...
In a MySQL Query Cache article here, it says "The MySQL query cache is a global one shared among the sessions. It caches the select query along with the result set, which enables the identical selects to execute faster as the data fetches from the in memory."
Does using free_result() after a select query negate the caching spoken of above?
Also, if I want to set variables and arrays obtained from the select query for use across pages, should I save the variables in memory via apc_store() for example? (I know that can save arrays too.) And if I do that, does it matter if I free the result of the query? Right now, I am setting these variables and arrays in an included file on most pages, since they are used often. This doesn't seem very efficient, which is why I'm looking for an alternative.
Thanks for any help/advice on the most efficient way to do the above.
...ANSWER
Answered 2021-May-21 at 16:47MySQL's "Query cache" is internal to MySQL. You still have to perform the SELECT
; the result may come back faster if the QC is enabled and usable in the situation.
I don't think the QC is what you are looking for.
The QC is going away in newer versions. Do not plan to use it.
In PHP, consider $_SESSION
. I don't know whether it is better than apc_store
for your use.
Note also, anything that is directly available in PHP constrains you to a single webserver. (This is fine for small to medium apps, but is not viable for very active apps.)
For scaling, consider storing a small key in a cookie, then looking up that key in a table in the database. This provides for storing arbitrary amounts of data in the database with only a few milliseconds of overhead. The "key" might be something as simple as a "user id" or "session number" or "cart number", etc.
QUESTION
I want to index a very large column in a very large table. The default /tmp
does not have enough disk space and is throwing no space left on device error.
I have a much larger partition where I can point innodb_tmpdir
to.
- I created a a tmp dir in this partition:
/mnt/partition/tmp
- Changed the permissions of this directory to 777
chmod -R 777 /mnt/partition/tmp
- Then I set the innodb_tmpdir variable to point to this directory via mysql client:
SET VARIABLE innodb_tmpdir='/mnt/partition/tmp';
- The variable is set correctly by executing:
SHOW VARIABLES LIKE 'innodb_tmpdir';
The issue arises when I try to create an index with the following basic command structure:
...ANSWER
Answered 2021-May-22 at 12:38in your config you're giving MySQL 4GB of memory for buffer pools. is that covered with available physical memory? do you actually have > 6GB or more RAM available? if not - please start with decreasing size of innodb buffer pool so the total amount is few GB below available physical memory.
QUESTION
I have created a 2TB MySQL RDS, and filled it with 2 tables totaling 1.5TB:
...ANSWER
Answered 2021-May-16 at 16:17Try to use EXPLAIN
to analyze your SELECT DISTINCT query. I bet it will include "Using temporary" and/or "Using filesort". With a large enough result set, these queries will use temporary disk space. But the more frequently you run these queries, the more disk space it uses.
I don't know why you use SELECT DISTINCT *
if the rows are already distinct. This may cause the use of a temporary table unnecessarily.
Ideally your query should be:
QUESTION
There're two docker images: https://hub.docker.com/_/percona/ and https://hub.docker.com/r/percona/percona-server Both seem to be maintained by Percona and have links to Percona's github.
Why are there two of them? What is the difference between them? Are they compatible with each other?
...ANSWER
Answered 2021-Apr-20 at 21:50TL;DR - Nothing, they both are built from the same repository. However, the _/percona images are newer.
The official percona image was last built 4 hours ago (as of writing this), and contains this link to the maintainer's repository:
Notice the hyperlink "Maintained by: Percona", which points to this repository:
The [Percona Server image] was last built two months ago, and the description contains the following reference to the source code:
This link is the same as the other image, but specifically references a certain directory (which apparently no longer exists, since it returns a 404 Not Found error).
QUESTION
I've code to deploy a helm chart using pulumi
kubernetes.
I would like to patch the StatefulSet
(change serviceAccountName
) after deploying the chart. Chart doesn't come with an option to specify service account for StatefulSet
.
here's my code
...ANSWER
Answered 2021-Mar-25 at 14:15Pulumi has a powerful feature called Transformations which is exactly what you need here(Example). A transformation is a callback that gets invoked by the Pulumi runtime and can be used to modify resource input properties before the resource is created.
I've not tested the code but you should get the idea:
QUESTION
I have the helm chart mongodb installed on my k8s cluster (https://github.com/bitnami/charts/tree/master/bitnami/mongodb).
I also have kube-prometheus-stack installed on my k8s cluster. (https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack)
I've setup a grafana dashboard for mongodb which should pull in data from a prometheus data source. (https://grafana.com/grafana/dashboards/2583 )
However, my grafana dashboard is empty with no data.
I'm wondering if i have not configured something with the helm chart properly. Please see the mongodb helm chart below.
mognodb chart.yml
...ANSWER
Answered 2021-Mar-17 at 00:40Installing prometheus using the "prometheus-community/kube-prometheus-stack" helm chart could be quite an extensive topic in itself considering the fact that it has a lot of configurable options.
As the helm chart comes with "prometheus operator", we have used PodMonitor and/or ServiceMonitor CRD's as they provide far more configuration options. Here's some documentation around that.
We've installed it with setting "prometheus.prometheusSpec.serviceMonitorSelector.matchLabels"
with a label value. Something like this
QUESTION
I am trying to follow Train Routes example as in the link below
My table is as below
Schema (MySQL v8.0)
...ANSWER
Answered 2021-Mar-16 at 23:17With your given data in the table:
QUESTION
I am developing a simple API and while it works in my local xampp i get a syntax error on my live server.
...ANSWER
Answered 2021-Feb-19 at 12:46The first comment was the correct answer "It seems the production server doesn't have a version that supports window functions" After contacting my provider it seems that they still use older versions of MySQL without window functions, thus I will have to change the implementation of ranking system.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install percona
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page